PDA

View Full Version : When object is displayed?


hayored
12-10-2002, 12:56 PM
Hi,
Thanks to all for answering my previous questions, but I have much more Flash mysteries.
Here is the next one:
When is the object displayed on the screen?

I have a loop something like that:

while ( ...) {
n = n + 1 ;
object._x = n ;
here is a code to wait 1/10 seconds
}

It looks to me that the object is displayed only after the loop, but not for each "object._x = n ;" command.
Am I right?

YH

jimburton
12-10-2002, 01:10 PM
you can use updateAfterEvent() to force flash to redraw the screen but I have a feeling that while loops do force everything to hang around while they execute...worth a try:


while ( ...) {
object._x = n++ ;
updateAfterEvent();
here is a code to wait 1/10 seconds
}