/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
stop(); var roll:Boolean = false; this.onRollOver = function() { roll = true; }; this.onRollOut = function() { roll = false; }; this.onEnterFrame = function() { if (roll == true) { this.nextFrame(); } else { this.prevFrame(); } };