Return to Starling Playback Library

Event doesn't fire while lags

Questions related to Starling playback library should be asked here.

Event doesn't fire while lags

Postby anton » April 27th, 2015, 6:36 am

Sometimes if application laggs, GAF skips frames and GAFMovieClip.EVENT_TYPE_SEQUENCE doesn't dispatch.
Is it possible for gaf to play all the frames event when lags?
User avatar
anton
 
Posts: 47
Joined: February 9th, 2015, 7:20 am

Re: Event doesn't fire while lags

Postby vadym.mitin » April 28th, 2015, 4:00 am

There is no GAFMovieClip.EVENT_TYPE_SEQUENCE. Use GAFMovieClip.EVENT_TYPE_SEQUENCE_START and GAFMovieClip.EVENT_TYPE_SEQUENCE_END instead of GAFMovieClip.EVENT_TYPE_SEQUENCE. And they should work even when GAF skip frames.

Also you can point GAF to play each frame without skipping. Just set
Code: Select all
gafMC.skipFrames=false;
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 2 guests