This content has been marked as final. Show 11 replies
what do you mean by "links" in your statement, "a button inside this movie clip links to another "parent" movieclip"?
The main timline is the parent movie and the movieclip has a button that when clicked on returns to a specific frame in the main timeline and leaves the movieclip, but due to the actionscript to speed up the movieclip it speeds up the main timeline also.
that's pretty screwy code, but it's not going to speed your main timeline. comment out your setInterval to test.
Do you mean comment like
//Coment not change the code?
correct. that will test if your setInterval() is causing the problem.
is where I uploaded the file and you can download the source file also. It is 2004 MX and the error still occured after I commented the code. If you could please take a peak and check the setInterval cause all of that is over my head.
Thanks in advance for your assistnace.
i have a limit to the amount of work i do to help without charging. downloading and correcting your file is beyond that limit.
if you have any questions, i'll continue to help free of charge. but if you want me to download and correct your file, you'll need to hire me by sending me an email through my website.
Well could you explain what the purpose of the setInterval is.
I just found a bit of code on a forum to spped up the MovieClip and didn't imagine it would effect the actionscript controlling the buttons and frame labels.
yourI = setInterval(f,t) starts a loop. it repeatedly calls the function f() every t milliseconds until a clearInterval(yourI) is executed.
the most common problem that occurs with setInterval() is executing it twice (or more) with no intervening clearInterval(). when that happens all hell breaks loose and the swf will call the function much more rapidly than intended and can not be (easily) stopped no matter how many clearInterval() statements you try and execute.
the easiest way to prevent that problem is to execute a clearInterval() just BEFORE all setInterval() statements. it doesn't hurt anything to (try and) clear and interval that doesn't exist and occasionally it'll stop the seemingly bizarre problems that occur with out-of-control intervals:
Yeah I tired that but no such luck. I will redo the Movieclip to an appropriate length so I can do away with the offending script.
Thanks for your help, it was an eye opener.