FLASH专一多媒体课件网
王老师 点击这里给我发消息  韩老师 点击这里给我发消息   

如何用action控制倒放

● |作者:互联网

● |发表:2016-9-10

● |点击:12747 次

● |类别:课件资讯

做一个mc放在合适的地方,里面有两帧
第一帧:
If (GetProperty ("/a",_current)<=1)
Begin Tell Target ("/a")
Go to and Stop (GetProperty ("/a",_totals))
End Tell Target
Else
Begin Tell Target ("/a")
Go to and Stop (GetProperty ("/a",_current)-1)
End Tell Target
End If
第二帧:
Go to and Play (1)
这样就可以让/a倒放
但是还有一个问题无法解决:
如果我只想停一段呢?[/color]
比如说,我在第十个关键帧处加了一个STOP,在第三十个关键帧处加了一个STOP,现在想
倒到STOP处停下来,却没有办法做到。
If (GetProperty ("/a",_current)<=1)
Begin Tell Target ("/a")
Go to and Stop (GetProperty ("/a",_totals))
End Tell Target
Else
Begin Tell Target ("/a")
Go to and Stop (GetProperty ("/a",_current)-1)
End Tell Target
End If
第二帧:
Go to and Play (1)
这一段肯定放在一个mc 里,
假设这个mc为/b
在/a需要停止的帧理设置
Begin Tell Target ("/b")
stop
End Tell Target
stop
就可以了
   上篇: FLASH基本操作(声音编辑...
   下篇: 如何在Flash中打开一个定...