How to play the animation to a particular frame?

There is an Animation from 1 to 24 frame.
How to play the animation from 10 to 15 the frame?
thought to write: gotoAndPlay(10,15) , but the syntax is not given :(
there was another option: gotoAndPlay(10) and then gotoAndStop(15) , but here, too, the jamb, the frame just stands on No. 15.
July 9th 19 at 10:44
1 answer
July 9th 19 at 10:46
I hope you know what an event listener
everything is easy, here is an excerpt

this.addEventListener(Event.ENTER_FRAME, updateMuvic);

private function updateMuvic(e:Event):void
if (Muvic.currentFrame == 15)
the difficulty is how and where you write the code, if in FlashDevelop, that's one option (the class constructor), if in Adobe Pro CC, and there you can write in the frames that pathetic initially, but then the code will be slightly different, depending on the situation, where he is - Dusty_Grady commented on July 9th 19 at 10:49
Thanks for the reply. :) I figured that already have a team ready, but so will writing. - Jett_Strosin commented on July 9th 19 at 10:52
ready is looping gotoAndPlay, everything else is handles to specify. - Dusty_Grady commented on July 9th 19 at 10:55

Find more questions by tags Adobe FlashActionScriptAnimation