Director制作显示日期效果
2007-09-22 作者:bitsCN整理 来源:网管学堂 点评 投稿 收藏
(6) 按照步骤(5),再创建5个Text窗口,分别输入文本“abbrev”、“abbreviated”、“long”、“short”、“normal”,再分别成为演员9、10、11、12、13,并分别将名称设置为与文本相同,如图7-140所示。
图7-140 Cast演员9、10、11、12、13
(7) 在Cast窗口中将所有演员拖动到舞台上,位置如图7-141所示。
图7-141 演员位置
(8) 双击Script通道的第1帧,打开Script窗口,输入以下Lingo语句,如图7-142所示。
on exitFrame me 网管联盟bitsCN_com
go to the frame
end
图7-142 第1帧Lingo脚本
(9) 选中舞台上的精灵1,单击右键,在快捷菜单中选择Script命令,打开Script窗口为其添加以下的Lingo语句,如图7-143所示。
on mouseUp me
set the text of member("abbr")=the abbr date
set the text of member("abbrev")=the abbrev date
网管联盟bitsCN@com
set the text of member("abbreviated")=the abbreviated date
set the text of member("long")=the long date
set the text of member("short")=the short date
set the text of member("normal")=the date
end
图7-143 精灵1的Lingo脚本
(10) 至此,显示日期动画的制作完成了,播放电影,效果如图7-144所示。
网管下载dl.bitscn.com
图7-144 显示日期播放效果
网管bitscn_com