Learn Flash Part 10
Learn Flash Part 10
Out of context: Reply #9
- Started
- Last post
- 10 Responses
- unfittoprint0
setInterval is much more versatile, and it's OOP [Object Oriented programming]. You can control its loop speed, independently of framerate, because its driven by time.
It can loop only specific functions intead of a whole movieclip, if u want, it can include multiple parameters, specific of the funcions being 'looped'.
onEnterFrame is considered by many [including Colin Moock, writer of the essential O'Reilly Actionscript Definitive Guide] an 'ugly' way to deal with dynamic loops, less versatile and constrained to the Stage framerate.