Posted By

sicbot on 04/02/08


Tagged


Versions (?)

animated rollover


 / Published in: ActionScript
 

  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  

You need to login to post a comment.