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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setInterval have enabled/disabled property?

Status
Not open for further replies.

rds747

Technical User
Mar 8, 2005
180
US
Does the setInterval have a timer enabled/disabled property?

I have a setinterval on a function that moves a movieclip along the y-axis and once it gets to its destination I have a clearInterval. And until the MC gets to its destination point, I have the visibility set to false and once it does I set its visibility to true. However, there are times when the MC at its destination point appears visible and other times that it isn't.

My co-worker thinks it could be that other setIntervals are affecting the setInterval that I'm having a problem with and thats why I'm getting the random visibility of the MC.

If someone could please advise me on how I can debug this problem.

Thanks!
 
Yes, I have several other setIntervals, but the button I have triggers only the setInterval that moves the MC along the y-axis.
 
each time I stepped through the function that has the setInterval, everything worked accordingly. The MC moved along the y-axis and was visible at its destination pt.

If I have all my setIntervals in individual functions and when the movie loads I don't call any of these functions, the setIntervals shouldn't play automatically, correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top