# Play and stop at frame Flash CS6 AS3

**URL:** <https://forum.kirupa.com/t/play-and-stop-at-frame-flash-cs6-as3/332651>\
**Category:** flash\
**Created:** [September 9, 2014, 8:05am UTC](https://forum.kirupa.com/t/play-and-stop-at-frame-flash-cs6-as3/332651 "2014-09-09T08:05:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![P3g4sus77](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@P3g4sus77](https://forum.kirupa.com/u/P3g4sus77)\
**Post date:** [September 9, 2014, 8:05am UTC](https://forum.kirupa.com/t/play-and-stop-at-frame-flash-cs6-as3/332651/1 "2014-09-09T08:05:27Z")

</div>

Hi Guys,  
I have this problem, Im busy writing a circle Navigation flash, Different buttons must trigger playing of the main animation and main timeline from current frame to a certain frame(172), im Used to AS1, but struggling with AS3, Ive got a Frame counter, as soon as i trigger my button it plays only frame 1, nothing else, ive added MovieClip(parent).play(); to force it to play after my eventlistner.  
but then it doesnt stop at the required frame, ive got a frame box to see what frames are playing, so got a good idea where in the time line im going.

trace(MovieClip(parent).currentFrame);  
download.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToScene\_11);  
{  
function fl\_ClickToGoToScene\_11(event:MouseEvent):void  
{  
//MovieClip(parent).gotoAndStop(172,“Scene 1”);  
MovieClip(parent).play();  
trace(currentFrame);  
if (MovieClip(parent).currentFrame == 172 )  
{  
MovieClip(parent).gotoAndStop(172 , “Scene 1”);  
stage.removeEventListener(MouseEvent.CLICK, fl\_ClickToGoToScene\_11);  
}  
}  
}  
after my argument ive tried MovieClip(parent).stop(); as well, does the same thing?

am I missing something small? any help will be greatly appreciated.
