# \[Flash CS4\] AS2 - Stop flvplayback and jump to first frame

**URL:** https://forum.kirupa.com/t/flash-cs4-as2-stop-flvplayback-and-jump-to-first-frame/287406
**Category:** flash
**Created:** [April 30, 2009, 4:08pm UTC](https://forum.kirupa.com/t/flash-cs4-as2-stop-flvplayback-and-jump-to-first-frame/287406 "2009-04-30T16:08:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jhester3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jhester3](https://forum.kirupa.com/u/jhester3)
#### Post date: [April 30, 2009, 4:08pm UTC](https://forum.kirupa.com/t/flash-cs4-as2-stop-flvplayback-and-jump-to-first-frame/287406/1 "2009-04-30T16:08:38Z")

</div>

I am using the flvplayback component to load an flv from my local machine. It loads and plays back just fine.

Now I want to add a button under the component that, when clicked, will stop playback and return the user to the first frame of my swf, which is a menu.

I feel like it should be as simple as this script on the button:

on (release) {  
Viewer.stop();  
gotoAndPlay(“Landing”);  
}

“Viewer” is the instance name for the component and “Landing” is the frame label for that first frame.

I am under the gun on this project so any quick tips would be greatly appreciated! Thanks.
