E
E
Evgeniy Liferov2016-05-30 10:43:41
ActionScript
Evgeniy Liferov, 2016-05-30 10:43:41

How to play animation up to a specific frame?

There is Animation from 1 to 24 frames.
How to play animation from 10th to 15th frame?
I thought to write: gotoAndPlay(10,15) , but the syntax did not give :(
there was also an option: gotoAndPlay(10) and then gotoAndStop(15) , but here, too, there is a jamb, the frame immediately stands at No. 15.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Neonoviiwolf, 2016-05-30
@LEV13

I hope you know what event listeners are,
everything is easy, here is an excerpt
this.addEventListener(Event.ENTER_FRAME, updateMuvic);
Muvic.gotoAndPlay(10)
private function updateMuvic(e:Event):void
{
if (Muvic.currentFrame == 15)
Muvic.gotoAndStop(15)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question