At 6/24/08 07:15 PM, Coronus42 wrote:
If it's just sitting on the frame code outside of a function or event handler it's not going to be run through again. I'd do something like this:
That's the answer. Code on a frame is only run when the frame loads.
To have some code that runs ever frame, I personally make a shape off-stage, make it an mc then give it the code
onClipEvent(enterFrame){
//put the score-checking code or anything else that should happen every frame here
}
Simple, but effective.
I still use the original AS though (still using Flash MX), so assuming you're more up-to-date than I, Coronus' method may be better.