Flash如何用action控制倒放?
答: 做一个mc放在合适的地方,里面有两帧
第一帧:
If (GetProperty ("/a",_currentframe)<=1)
Begin Tell Target ("/a" Go to and Stop (GetProperty ("/a",_ totalframes))
End Tell Target
Else
Begin Tell Target ("/a" Go to and Stop (GetProperty ("/a",_ currentframe)-1)
End Tell Target
End If
第二帧:
Go to and Play (1)
这样就可以让/a倒放
但是还有一个问题无法解决:
如果我只想停一段呢?
比如说,我在第十个关键帧处加了一个STOP,在第三十个关键帧处加了一个STOP,现在想倒到STOP处停下来,却没有办法做到。
If (GetProperty ("/a",_currentframe)<=1)
Begin Tell Target ("/a" Go to and Stop (GetProperty ("/a",_ totalframes))
End Tell Target
Else
Begin Tell Target ("/a" Go to and Stop (GetProperty ("/a",_ currentframe)-1)
End Tell Target
End If
第二帧:
Go to and Play (1)
这一段肯定放在一个mc 里,
假设这个mc为/b
在/a需要停止的帧理设置
Begin Tell Target ("/b"
stop
End Tell Target
stop
就可以了