Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mc gets crazy when button is pushed down many times

Status
Not open for further replies.

tanatos

Programmer
Sep 7, 2003
17
ES
Last Week Great Oldnewbie gave me the code play from frame to next every ten seconds. It works fine but when button which calls the file.swf is clicked many times, file.swf gets crazy why? I don't know. (file.swf is in a holder mc.)
 
So you're actually pausing a loaded external movie?
Just disable the button once it has been clicked for a first time.

Regards,

cubalibre2.gif
 
or better still just add a clearinterval statement to the first line of button code.....crazy behavior comes from lots of the same intervals running at once.
 
...better still...
Shhhhheeeeeeeeeeessssssshhhhhhhhhhh!

Regards,

cubalibre2.gif
 
Hi thank you to oldnewbie and billwatson

//The code is:
function timer(){
_root.container.porceramica.contenedor1.pointing.play();
clearInterval(pause);
};

pause = setInterval(timer, 10000);
stop();
the code attached to button would be?:
on (release) {
clearInterval( pause );
}
 
function timer(){
_root.container.porceramica.contenedor1.pointing.play();
clearInterval(pause);
};

stop();
the code attached to button would be?:
on (release) {
clearInterval( pause );
pause = setInterval(timer, 10000);
}
 
OK Today i'm gonna work on the two ways you propose.
To say the truth, i'm a little tired with this stuff cause is the last detail to finish, although without you men it would probably be the first of all.
 
The question you've never answered is... Is there a point in the user's constantly re-loading that "self-pausing" movie loaded in a container clip in your main movie? If not, then simply disable that button, when the movie is first loaded. The user won't be able to reload it, and the self-pausing external movie should work fine.
What Bill is proposing is a button that would pause the movie... Not exactly the same thing, if I've understood you correctly!

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top