# Stop and Resume

**URL:** https://forum.kirupa.com/t/stop-and-resume/3712
**Category:** programming
**Created:** [October 22, 2001, 12:18am UTC](https://forum.kirupa.com/t/stop-and-resume/3712 "2001-10-22T00:18:05Z")
**Posts on this page:** 8
**Page:** 1

<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: [October 22, 2001, 12:18am UTC](https://forum.kirupa.com/t/stop-and-resume/3712/1 "2001-10-22T00:18:05Z")

</div>

How would you go about playing a song, and when the person clicks for it to stop, have it pick up in the same place it stopped?

---

<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: [October 22, 2001, 4:08am UTC](https://forum.kirupa.com/t/stop-and-resume/3712/2 "2001-10-22T04:08:05Z")

</div>

make it a streaming sound, make the movie containing it long enough to play the whole song. now wherever you play in that movie is where the song will play.

---

<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: [October 24, 2001, 1:32am UTC](https://forum.kirupa.com/t/stop-and-resume/3712/3 "2001-10-24T01:32:41Z")

</div>

Ok say I have a movie. In this movie it does several things and all, but I have a stop button that’s on every frame. Now if this button where hit, the movie would stop exactly where it’s at. And then it changes to a play button, and when clicked, resumes where it left off. How would I go about making this? 😉

---

<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: [October 24, 2001, 1:44am UTC](https://forum.kirupa.com/t/stop-and-resume/3712/4 "2001-10-24T01:44:09Z")

</div>

alright, check out [www.parloursteps.com,](http://www.parloursteps.com,) go to the album page and click on one of the songs.

this is (part of) what i did:

the songs are loaded into their own level (\_level30) on demand with a loadMovie() command. they’re a swf that has nothing except the song and enough frames to fit the whole length.

in the player you have a movie containing two frames, each with a button. frame 1 is a stop button which has:

```auto
 
on(release){
   _level30.stop(); // stop the music
   gotoAndStop(2); // go to the play button
}

```

frame 2 has a play button with suitable actions.

enough to get you going?

---

<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: [October 24, 2001, 8:43pm UTC](https://forum.kirupa.com/t/stop-and-resume/3712/5 "2001-10-24T20:43:18Z")

</div>

Welp…That’s exactly wut im talking about. But then again, no it’s not enough to get me going. Im an ameature 😉 Do you have AIM or something? Where I can actually sit down and discuss this with you? instead of via a message board?

---

<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: [October 24, 2001, 10:49pm UTC](https://forum.kirupa.com/t/stop-and-resume/3712/6 "2001-10-24T22:49:39Z")

</div>

sorry, no aim or the like.

i’ve emailed you the player portion of the above example. all you really need to look at is the stop/play button.

it’s all contained in the “meter” movie, you could cut and paste that movie into another fla and it would work just fine … provided you load your song fla’s into level30.

if you want to discuss any of it, repost. i’d be happy to help.

cheers.

---

<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: [October 24, 2001, 11:05pm UTC](https://forum.kirupa.com/t/stop-and-resume/3712/7 "2001-10-24T23:05:08Z")

</div>

Alrighty ill check it out

I noticed that tha load time for those songs on tha site were small…wut formatt where they in? How’d u compress’em? Did u even make’em?

lol im jus so full of questions 🙂

---

<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: [October 24, 2001, 11:21pm UTC](https://forum.kirupa.com/t/stop-and-resume/3712/8 "2001-10-24T23:21:49Z")

</div>

they’re mp3’s imported into flash and then published at 32kbps high quality stereo, some were published at 48kbps. the largest is about 2 mb and the smallest is 750kb.

since they’re set to stream, they start playing right away too!

i made the original mp3’s with [cdex](http://www.cdex.n3.net/), a great free wav 2 mp3 convertor.
