A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Simple RollOver fail to work before clicked once

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    155

    Simple RollOver fail to work before clicked once

    Hi, I have a simple rollover failed. Let say I have a movie clip "mv"

    mv, frame 1, stop();
    mv, frame 10, gotoAndPlay(2);

    and I have and button "btn", I right click and press F9 and added the following codes
    Code:
    on (release) {
    	btn.onRollOver = function() {
    		mv.gotoAndPlay(2);
    	};
    }
    on (release) {
    	btn.onRollOut = function() {
    		mv.gotoAndStop(1);
    	};
    }
    As the result, I fail to see the rollover effect before I click the button once.
    How to fix it?

    Test file
    http://www.2shared.com/file/89i1fT9q/rollover.html

    Thanks for the attention.

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    155
    fixed
    on (rollOver) {
    mv.gotoAndPlay(2);
    }
    on (rollOut) {
    mv.gotoAndStop(1);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center