Return to Starling Playback Library

Detect GAFMovieClip play complete

Questions related to Starling playback library should be asked here.

Detect GAFMovieClip play complete

Postby Lê Huy Hùng » July 8th, 2015, 9:24 pm

How to detect GAFMovieClip play complete, with Starling MovieClip, I listened complete event but seems it doesn't work with GAFMovieClip
User avatar
Lê Huy Hùng
 
Posts: 61
Joined: July 3rd, 2015, 8:32 pm

Re: Detect GAFMovieClip play complete

Postby vadym.mitin » July 9th, 2015, 6:21 am

Hello,

We just added dispatching the starling.events.Event.COMPLETE when the GAFMovieClip playhead reaches the last frame. Please update GAF library from master.
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Re: Detect GAFMovieClip play complete

Postby chaoslife » July 12th, 2015, 5:46 pm

mc.addEventListener ( GAFMovieClip.EVENT_TYPE_SEQUENCE_END, function);

I use this,it will dispatch when play end frame.
User avatar
chaoslife
 
Posts: 3
Joined: January 16th, 2015, 3:33 am

Re: Detect GAFMovieClip play complete

Postby vadym.mitin » July 13th, 2015, 1:00 am

chaoslife@foxmail.com wrote:mc.addEventListener ( GAFMovieClip.EVENT_TYPE_SEQUENCE_END, function);

I use this,it will dispatch when play end frame.


This works ONLY when an animation contain at least one sequence. If there are no sequences GAFMovieClip.EVENT_TYPE_SEQUENCE_END is not dispatched.
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