This content has been marked as final. Show 7 replies
Thanks for the reply, but updateAfterEvent() only works for onMouseMove and something else I can't remember. It doesn't work for for loop.
You are not going to be able to do this with a for loop. That is the plain and simple of it. For loops are not for doing such things.
Your best bet is onEnterFrame. I don't understand your concern about the framerate. Yes, everything in Flash is in some ways dependent upon the frame rate. But The human eyes is probably not going to notice the different between 24 letters being displayed per second vs. 30 or 50, maybe, if Flash can even render letters at that rate. What is your point here?
The preloading will also depend upon the computer speed, hard drive speed, other things the computer is doing, internet speed and traffic, and for all I know the phase of the moon.
It would also be possible to use a setInterval. But don't even think it is going to work if you try and do something like 1 millisecond intervals.
So really the question is what are you really trying to do?
I'm trying to use a for loop to read a string and convert the characters into something else. Basically I want to setup a visual display to inform the user how much of the string has been read.
Hope you can help
But that will not work. I don't understand why you think it needs to be a for loop. Also I'm not understanding why you don't think an onEnterFrame won't do what you want – I think it will. Until I understand that I can't really explain anything that would help you.
As per my knowlage u can solve this setinterval function