Home Tutorials Forums Articles Blogs Movies Library Employment Press

<< Prev 5 |

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
movie simple control
//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

<< Prev 5 |

Copyright 2000-2010 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.