Problems with the Enterframe Event

Posted by user434565 on Stack Overflow See other posts from Stack Overflow or by user434565
Published on 2011-01-08T02:39:21Z Indexed on 2011/01/08 12:54 UTC
Read the original article Hit count: 114

Hey guys,

I have been developing a game using Flex, and used the Timer class to keep the main loop going.

However, when I tried using the enterFrame event to do the main loop, there were a few problems.

First of all, physics simulation seemed way too fast. Is the enterFrame event called more than once per frame? I set the application's global frame rate to 24, so shouldn't the application set off the event every 1/24 of a second?

And the second problem is that when the game runs like this, some MXML components that are added are not shown. I have absolutely no idea why this happens.

Help me please?!?

Thanks.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3