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

Controlling FOR loop speed

Status
Not open for further replies.

paulw1982

MIS
Aug 6, 2003
41
AU
Hello,

I'm quite new to Flash but I am trying to find out how to slow down the speed that my FOR loops are running.

What is the best way for me to do this?
 
Not sure what you mean - a 'for' loop executes completely within one frame so you should have no idea what speed it's running. What are you actually trying to achieve with your script, maybe this is a framerate issue or something?
 
I want to have buttons on my site which increase their size when the mouse is rolled over them. I though I would have to use the _xscale and _yscale keywords within a for loop maybe?
 
probably need to use a different loop... try using frames to loop... then if you need to slow it down just increase the number of frames
 
Or, use a For Loop but update the size of the button every third of fifth step through the loop.

-----
The death of dogma is the birth of reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top