# Play and Pause Issues

**URL:** <https://forum.kirupa.com/t/play-and-pause-issues/274479>\
**Category:** flash\
**Created:** [October 30, 2008, 3:27pm UTC](https://forum.kirupa.com/t/play-and-pause-issues/274479 "2008-10-30T15:27:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leetech](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@leetech](https://forum.kirupa.com/u/leetech)\
**Post date:** [October 30, 2008, 3:27pm UTC](https://forum.kirupa.com/t/play-and-pause-issues/274479/1 "2008-10-30T15:27:42Z")

</div>

Hi,  
I am having some trouble with adding Play and Pause buttons to my flash movie. Basically this movie consists of music, speech and a table of contents which is navigational for the different subunits. Currently the users will have to watch the whole movie without being able to pause it. I cannot seem to get the play and pause scripts to work. I have tried the 2 different scripts;  
[FONT=Verdana][SIZE=2]1. Pause Script:[/SIZE][/FONT]  
[FONT=Verdana][SIZE=2]on (release) {[/SIZE][/FONT]  
[SIZE=2]gotoAndStop(2);[/SIZE]  
[SIZE=2]\_parent.stop();[/SIZE]

[FONT=Verdana][SIZE=2]1. Play Script[/SIZE][/FONT]  
[FONT=Verdana][SIZE=2]on (release) {[/SIZE][/FONT]  
[SIZE=2]gotoAndStop(1);[/SIZE]  
[SIZE=2]\_parent.play();[/SIZE]

[FONT=Verdana][SIZE=2][/SIZE][/FONT]  
[FONT=Verdana][SIZE=2]2. Pause Script[/SIZE][/FONT]  
[FONT=Verdana][SIZE=2]on (press) {[/SIZE][/FONT]  
[FONT=Verdana][SIZE=2]stop();[/SIZE][/FONT]  
}  
2. Play Scritp  
on (press) {  
play();  
}

[FONT=Verdana][SIZE=2]Attached is an image of my timeline that might be useful when understanding what I am dealing with. Within the red box is my button area.[/SIZE][/FONT]  
[FONT=Verdana][SIZE=2] ![](http://forum.kirupa.com/uploads/kirupa/5027/42a6ca4db1657c72.jpg)[/SIZE][/FONT][/font]
