# When loading movies

**URL:** <https://forum.kirupa.com/t/when-loading-movies/11876>\
**Category:** flash\
**Created:** [January 23, 2003, 4:08pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876 "2003-01-23T16:08:57Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattC](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@MattC](https://forum.kirupa.com/u/MattC)\
**Post date:** [January 23, 2003, 4:08pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/1 "2003-01-23T16:08:57Z")

</div>

if you make the movie stop like say for making a full flash site, how do you make it continue the animation when you click another button.

---

<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:** [January 23, 2003, 4:12pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/2 "2003-01-23T16:12:18Z")

</div>

but replace the **stop();** action with a **play();** action.

🙂

---

<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:** [January 23, 2003, 4:16pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/3 "2003-01-23T16:16:01Z")

</div>

ok in my main move i am going to do a  
on release {  
\_root.movie.loadMovie(“movie1.swf”)  
}

and where i have the stop command will be in my movie1.swf file  
so how do i make it play from where it stopped?  
because in my movie1.swf i am just going to have it play to a certain fram and then stop.

---

<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:** [January 23, 2003, 4:41pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/4 "2003-01-23T16:41:48Z")

</div>

> \*Originally posted by MattC \*  
> \*\*ok in my main move i am going to do a  
> on release {  
> \_root.movie.loadMovie(“movie1.swf”)  
> }

and where i have the stop command will be in my movie1.swf file  
so how do i make it play from where it stopped?  
because in my movie1.swf i am just going to have it play to a certain fram and then stop. \*\*

first:

use this **()** and this **;** :

on COLOR=blue[/COLOR] {  
\_root.movie.loadMovie(“movie1.swf”)[COLOR=red];[/COLOR]  
}

and, to play the movie, you can simply place a button on that very movie on the frame that it stop, with an action like this:

on (release){  
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:** [January 23, 2003, 5:48pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/5 "2003-01-23T17:48:32Z")

</div>

that doesnt make sense all my buttons are going to be in my main movie and so when i click on say…info… it will finish the home page movie and then run the info movie.

---

<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:** [January 23, 2003, 5:59pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/6 "2003-01-23T17:59:26Z")

</div>

then, have a button on the main movie with the folowing script:

on (release){  
**\_level#**.play();  
}

# = level of the loaded movie

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:** [January 23, 2003, 6:53pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/7 "2003-01-23T18:53:55Z")

</div>

thats not going to work either becuase i will have like 6 buttons on the site so it will be different depending on what page you are on.

---

<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:** [January 23, 2003, 6:56pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/8 "2003-01-23T18:56:52Z")

</div>

so what, exactly, do you want?

I mean, how can i help ya?

:q:

---

<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:** [January 23, 2003, 7:23pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/9 "2003-01-23T19:23:20Z")

</div>

[http://www.yamodesign.com/](http://www.yamodesign.com/)

exactly how he has (well the concept) if you click one button it finishes the current movie then loads another. Then when you click another button it finishes that movie and loads another

---

<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:** [January 23, 2003, 7:50pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/10 "2003-01-23T19:50:42Z")

</div>

i only understand you now.

here´s what he is doing:

every section is a different movie [SIZE=1]~doh[/SIZE], and when you click a button, the actions are similar to that:

[SIZE=1]let´s say you are at _home_ and you click the _portfolio_ button:[/SIZE]

on (release){  
\_root.home.play();  
\_root.nextContent = “portfolio”;  
}

[SIZE=1]this will make the actual content movieclip (_home_) play, and set the value of the variable _nextContent_ to portfolio  
at the end (last frame) of each content movieclip, in this case _home_, is a conditional loop that will check wich is the next content that must be loaded, like that one:[/SIZE]

if (\_root.nextContent == “home”){  
loadMovieNum(“home.swf”, 1);  
}else if (\_root.nextContent == “portfolio”){  
loadMovieNum(“portfolio.swf”, 1);  
}else if (\_root.nextContent == “yadayada”){  
loadMovieNum(“yadayada.swf”, 1);  
} and so on…

[SIZE=1]so, when the _home_ movieclip get to the last frame, the condition loop will find that the actual value for the _nextContent_ variable is _portfolio_, and so, will perform the action _loadMovieNum(“portfolio.swf”, 1);_ that will load the _portfolio_ section[/SIZE]

Got it?

---

<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:** [January 23, 2003, 8:01pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/11 "2003-01-23T20:01:30Z")

</div>

wow i have no clue really but i think we are on the same page, i will try this when i get home from work and see what i come up with. Yikes, and i thought it was going to be simple

---

<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:** [January 23, 2003, 8:04pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/12 "2003-01-23T20:04:30Z")

</div>

that **is** simple.

Maybe i whip up some fla example for ya.

Cheers :pirate:

---

<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:** [January 23, 2003, 8:21pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/13 "2003-01-23T20:21:04Z")

</div>

im sure it is, just when i see actionscripting i get intimidated. but i really do appreciate you helping me

---

<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:** [January 23, 2003, 8:29pm UTC](https://forum.kirupa.com/t/when-loading-movies/11876/14 "2003-01-23T20:29:09Z")

</div>

I´m here to help. =)

See if is what you need:

---

<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:** [January 24, 2003, 12:56am UTC](https://forum.kirupa.com/t/when-loading-movies/11876/15 "2003-01-24T00:56:25Z")

</div>

are you there? :q:
