Return to Starling Playback Library

Feature Request: GafMovieClip add to a specific juggler

Questions related to Starling playback library should be asked here.

Feature Request: GafMovieClip add to a specific juggler

Postby Haska Su » April 17th, 2015, 7:02 am

Currently, GafmovieClip can only be added to Starling.juggler which is very hard to manage the animation pause/resume.

Can we change the constructor , to accept a juggler instead of addToJugger(Boolean).
So the GarMovieClip can be added to my juggler and be removed when dispose.

I am not able to extends GafMovieClip to achieve this, because I dont have control of creating child-GafMovieClips.

Thanks~
User avatar
Haska Su
 
Posts: 3
Joined: March 27th, 2015, 1:55 pm

Re: Feature Request: GafMovieClip add to a specific juggler

Postby Ivan Avdeenko » April 17th, 2015, 7:19 am

Actually GAFMovieClip can be added in any juggler, that accepts objects with IAnimatable interface. If you want to put GAFMovieClip into your own juggler you should:
1) create it with addToJugger = false
Code: Select all
 var gafMC: GAFMovieClip = new GAFMovieClip(gafTimeline, "", -1, false);

2) add to your own juggler
Code: Select all
myJuggler.add(gafMC);
User avatar
Ivan Avdeenko
 
Posts: 30
Joined: June 6th, 2014, 12:22 am

Re: Feature Request: GafMovieClip add to a specific juggler

Postby Haska Su » April 17th, 2015, 8:03 am

Thanks for the reply.

Yes , I understand that, but just hope the GafMovieClip can manage juggler itself as it is doing now.
User avatar
Haska Su
 
Posts: 3
Joined: March 27th, 2015, 1:55 pm

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 1 guest