animated rollover


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. stop();
  2. var roll:Boolean = false;
  3. this.onRollOver = function() {
  4. roll = true;
  5. };
  6. this.onRollOut = function() {
  7. roll = false;
  8. };
  9. this.onEnterFrame = function() {
  10. if (roll == true) {
  11. this.nextFrame();
  12. }
  13. else {
  14. this.prevFrame();
  15. }
  16. };

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.