Return to Starling Playback Library

keyframes?

Questions related to Starling playback library should be asked here.

keyframes?

Postby Gigi Marzullo » March 29th, 2017, 7:29 am

Is there a way to know if current frame is a keyframe?
User avatar
Gigi Marzullo
 
Posts: 20
Joined: March 10th, 2017, 4:42 pm

Re: keyframes?

Postby Gigi Marzullo » April 5th, 2017, 11:11 pm

At the moment I need to dispatch a data event with instance name, then I grab it from code and gather "currentFrame" value. It's a bit labor intensive but it's the only way I see for now....

Code: Select all
private function keyframeEvent(event:Event){
   trace("keyframeDetected at " + (event.target as GAFMovieClip).currentFrame + " for instance: " + event.data);
}
User avatar
Gigi Marzullo
 
Posts: 20
Joined: March 10th, 2017, 4:42 pm

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 1 guest