# Urgent help needed with Play/pause button in flash

**URL:** https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481
**Category:** Uncategorized
**Created:** [August 27, 2003, 10:32am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481 "2003-08-27T10:32:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chimpo](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@chimpo](https://forum.kirupa.com/u/chimpo)
#### Post date: [August 27, 2003, 10:32am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481/1 "2003-08-27T10:32:23Z")

</div>

I have seen umpteen different guides on how to make a play/pause button in flash. and i cannot get it to work. I think i may pull my hair out soon.

basically- i have made an mc which sits on the main timeline. i t has 2 frames, ecah of which has a stop() action in the frame. the first has a pause button with the following script attached to to the button:

on(release){  
\_root.stop();  
gotoAndStop(2);  
}

i have also tried putting in nextFrame instead of gotoAndStop() -but this is besides the point as it’s not even stopping!

in the second frame there is a play button with the following scruipt attached to it:

on(release){  
\_root.play();  
gotoAndStop(1);  
}

I think the problem may be deeper rooted because i have looked on sevral guides and they all tell me to do a similar thing.  
In fact i made a button which sat on the timeline with this script

on (release) {  
\_root.stop();  
}

and STILL nothing happened!!! someone helo me please!!

chimpo

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 10:45am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481/2 "2003-08-27T10:45:29Z")

</div>

can you post the FLA so we can have a look at it? There’s nothing wrong with your script so maybe the problem is in the animation on the main timeline! :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 10:48am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481/3 "2003-08-27T10:48:49Z")

</div>

ok how do i do that? its quite big (about 1300 frames)-

-edit ok ive chopped off a bit of it- its now about 30 frames or so- about 90k now is this too big?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 6:24pm UTC](https://forum.kirupa.com/t/urgent-help-needed-with-play-pause-button-in-flash/29481/4 "2003-08-27T18:24:31Z")

</div>

no its fine. go ahead and upload it
