This content has been marked as final. Show 5 replies
onEnterFrame and setImterval do a similar thing, no need to do both I think,
maybe that will do it
onEnterFrame does NOT execute once when the frame is entered (despite its name). it executes repeatedly (ie, it starts a loop) starting when the frame that contains its code is entered and continues until the timeline to which it's attached no longer exists or a delete onEnterFrame is executed.
in addition, you should always precede your setInterval() statement with a clearInterval(). especially, when your setInterval is attached to a frame. it's almost guaranteed that you'll have a mess on your hands if you use the code given by madmac, unless you add that clearInterval().
thanks for the insight kglad, i think i need to do some more research and thinking before i solve this one
read about setInterval. the code madmac gave is good. just precede that setInterval() with clearInterval().
thanks madmac, it did the trick