|
Movie play reverse on timeline
//Write the script on frame 1 stop(); var total=this._totalframes; onEnterFrame= function(){ this.gotoAndStop(i--); //trace(i); } /*create two button give the instance name "play_btn" and "reverse_btn"*/ reverse_btn.onRelease=function(){i=total}; play_btn.onRelease=function(){gotoAndPlay(2); }; Posted by: Pradeep | website http://www.actionscript.org/actionscripts_library/main/add.cgi |
//simple player controler //press space to pause movie and enter to play ^^ Key.addListener(this); this.onKeyDown = function() { if (Key.isDown(Key.SPACE)) { _root.stop(); } if (Key.isDown(Key.ENTER)) { _root.play(); } }; Posted by: Adrien | website http://www.e-mergency.net |

