Saturday, December 30, 2006

onFrameEnter, onFrameEnter, onFrameEnter, onFrameEnter...

If a component is visible (possibly even when it isn't visible?) and you are hooked into the onFrameEnter event it will fire continuously at a regular interval, even though nothing is happening. I found this very frustrating when trying to put together a little Flex flash player (which is the cause of most of the problems I ran into). I had wanted to display the current frame being played and thought using theonFrameEnter event would work. This was a very unexpected behaviour, though I'm sure there are reasons for it. This ties into a couple other problems I had, which will be coming up shortly.

No comments: