gree / lwf

LWF - Lightweight SWF
http://gree.github.com/lwf/
zlib License
627 stars 167 forks source link

OnEnterFrame not working on low FPS flashes? #141

Open DelSystem32 opened 9 years ago

DelSystem32 commented 9 years ago

I add a callback to the root movie in my LWFObject like so:

lwf.AddMovieEventHandler(lwf.rootMovie.instanceId, enterFrame:OEF);

This OEF method is called fine if the swf was exported at 3 FPS or higher. At a frame rate of 3 it is called three times per second as it should. But if I set the FPS to 2 or 1 in my FLA project the OEF method is called once and then never again.

splhack commented 9 years ago

How about calling LWF.SetFrameSkip API?

lwf.SetFrameSkip(false);
DelSystem32 commented 9 years ago

It doesn't work, I've tried calling lwf.SetFrameSkip(false); right after Load() and it still just stops animating. Right now LWF doesn't support 1 or 2 FPS flashes.