Saturday, 15 May 2010

flash - Time line Control by AS 2 -



flash - Time line Control by AS 2 -

i have sequence of images on timeline . want move timeline forwards , backward using right click mouse. click right mouse + x axis mouse ? action script 2

right mouse click added in as3 in flash player 11/12 , not beginning, don't think as2 has way because:

as2 runs on avm 1, while as3 has back upwards right mouse click runs on avm 2 as2 officially not supported adobe on year - don't think they'll ever add together right mouse click support

otherwise, if left-mouse click ok you, can access mouse position _xmouse , delta know direction saving x/y position on mouse downwards , on come in frame check difference. setting timeline's current frame should done through utilize of gotoandstop(framenumber), otherwise hard play timeline "backward". if want escape hassle of manipulating timeline take @ tweenlite/tweenmax has offer:

http://www.greensock.com/tweenmax/

it has features tween timeline backwards or forwards tween engine goodies changing speed , easing functions!

flash actionscript-2 fla

No comments:

Post a Comment