PDA

View Full Version : mc in button



Bacizone
October 5th, 2003, 05:14 PM
Hi,

I have a "bestflash_mc" animated movieclip incorporated into the three state (up, over, down) of the "bestflash_btn" button.

I would like to load the "bfhun.swf" file with the left mousebutton, using the code below:



on (release) {
bestflash_btn.onRelease = function() {
loadMovieNum("bfhun.swf", 0);
};
}


It works, however I always have to click TWICE to load the required swf. Why? And what to correct?

Thanks,
B.

eyeinfinitude
October 5th, 2003, 05:53 PM
That's because you have a static and dynamic button handler combined together so that's why you have to click twice. Try this:
on (release) {
loadMovieNum("bfhun.swf", 0);
}