Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : updating movieclip location on screen during for loop at root level


marcinelli
2/20/2006 11:29:08 PM
hello,
i need to move the location of various child movieclips at the root
level in a for loop. is there any way to do this? updateAfterEvent()
seems to do this but it can only be called in an onClipEvent() or
setInterval() call. all code is in one file and not in different
movieclip timelines so i can't use onClipEvent and trying to use it
in a setInterval() call doesn't seem to work. any ideas?

tia,
michael
kglad
2/21/2006 2:39:27 AM
you can update movieclip locations in a for-loop, but the for-loop will execute
from beginning to end before anything on-stage is updated. there's no way
around that.

it's not clear what other problems you're having with onEnterFrame and
setInterval() loops.
marcinelli
2/21/2006 3:37:38 AM
AddThis Social Bookmark Button