一般来讲,利用Flash制作多媒体课件时,技术性是多媒体课件设计者都非常关心的一个设计原则。从课件的表面上来看,一个成功的多媒体课件应该画面清晰,动画连续,色彩逼真,文字醒目,配音标准,音量适当,快慢适度,交互性强。而多媒体课件的使用者则非常看重课件的交互性。例如教师在讲解平面镜成像的特点时,希望能够按照学生的回答顺序依次呈现平面镜成像的四个特点。然而实际的做法其流程往往是这样的:设计者先把每个特点制作成影片剪辑,然后使用者通过点击相关按钮播放。这种模式下平面镜成像的四个特点是按照设计者预先设定的顺序去呈现,但是在实际教学过程中学生的回答顺序往往是无法预知的。如何解决这一问题?我们可以在Flash中来实现对象的无序播放。下面介绍制作的思路及过程。
一、制作思路:
通过读取 MovieClip 对象的 _currentframe 属性,可以获取当前 myMovieClip 对象动画中显示帧的序号。返回的数字值表示当前显示帧的序号。在条件语句中根据返回的 MovieClip 对象的数值判断该对象是否已经播放,如果已经播放则停留在该对象的最后一帧,否则停留在第一帧。
二、制作过程:
1、先把四个特点的文本分别制作成长度为15帧的影片剪辑,使其呈现过程有动画效果。同时制作1-4四个数字按钮对应四个特点。
2、返回场景,把四个数字按钮依次拖入到时间轴的第一层第一帧,并加入语句“stop();”。
3、新建四个图层,在新建图层的第二帧分别插入空白关键帧,然后把四个特点的影片剪辑分别拖入到四个新建图层的第二帧,并把对象的引用名称分别命名为“td1”、“td2”、“td3”、“td4”。
4、在第一层第一帧的四个数字按钮上分别写入如下内容:
(1)、on(release){
gotoAndStop(2);
_root.td1.gotoAndPlay(2);
if (_root.td2._currentframe==1)
{_root.td2.gotoAndStop(1);}
else
{_root.td2.gotoAndStop(15);}
if (_root.td3._currentframe==1)
{_root.td3.gotoAndStop(1);}
else
{_root.td3.gotoAndStop(15);}
if (_root.td4._currentframe==1)
{_root.td4.gotoAndStop(1);}
else
{_root.td4.gotoAndStop(15);}
}
(2)、on(release){
gotoAndStop(2);
_root.td2.gotoAndPlay(2);
if (_root.td3._currentframe==1)
{_root.td3.gotoAndStop(1);}
else
{_root.td3.gotoAndStop(15);}
if (_root.td1._currentframe==1)
{_root.td1.gotoAndStop(1);}
else
{_root.td1.gotoAndStop(15);}
if (_root.td4._currentframe==1)
{_root.td4.gotoAndStop(1);}
else
{_root.td4.gotoAndStop(15);}
}
(3)、on(release){
gotoAndStop(2);
_root.td3.gotoAndPlay(2);
if (_root.td2._currentframe==1)
{_root.td2.gotoAndStop(1);}
else
{_root.td2.gotoAndStop(15);}
if (_root.td1._currentframe==1)
{_root.td1.gotoAndStop(1);}
else
{_root.td1.gotoAndStop(15);}
if (_root.td4._currentframe==1)
{_root.td4.gotoAndStop(1);}
else
{_root.td4.gotoAndStop(15);}
}
(4)、on(release){
gotoAndStop(2);
_root.td4.gotoAndPlay(2);
if (_root.td2._currentframe==1)
{_root.td2.gotoAndStop(1);}
else
{_root.td2.gotoAndStop(15);}
if (_root.td1._currentframe==1)
{_root.td1.gotoAndStop(1);}
else
{_root.td1.gotoAndStop(15);}
if (_root.td3._currentframe==1)
{_root.td3.gotoAndStop(1);}
else
{_root.td3.gotoAndStop(15);}
}
完成以上工作之后,教师在上课过程中就可以根据学生回答的任意顺序来呈现了,使课件的交互性在很大程度上得到增强,满足课堂的实际需要。
郭辉和 湖南省汉寿县第二中学科教中心(415900 13707429595)
评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论