# Loadmovie actionscript

**URL:** https://forum.kirupa.com/t/loadmovie-actionscript/24095
**Category:** Uncategorized
**Created:** [June 26, 2003, 12:08am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095 "2003-06-26T00:08:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ashleek007](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Ashleek007](https://forum.kirupa.com/u/Ashleek007)
#### Post date: [June 26, 2003, 12:08am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/1 "2003-06-26T00:08:19Z")

</div>

I wanted to reduce the filesize of my flash site so it didn’t take forever to load on a 56k modem

I have decided to go down the route of loading each scene only when the user clicks the corresponding link.

I know that I need to use the loadmovie actionscript for this but I REALLY dont know how to!!!

I’ve tried the tutorials but dnt understand, could anyone simplify it.

e.g. if I was going to link a scene called “intro” with a button, to another scene called “main” what would the code be for this???

cheers for any help:cowboy:

---

<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: [June 26, 2003, 12:09am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/2 "2003-06-26T00:09:11Z")

</div>

Use external swf instead of scenes…

---

<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: [June 26, 2003, 12:24am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/3 "2003-06-26T00:24:45Z")

</div>

ya

---

<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: [June 26, 2003, 11:08am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/4 "2003-06-26T11:08:56Z")

</div>

I have separate swf files in the same folderbut still dont know how to do it.

I need the loadmovie scripting, but dnt know how to do it?:rd:

---

<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: [June 26, 2003, 11:36am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/5 "2003-06-26T11:36:48Z")

</div>

on your button::  
[AS]on (release) {  
loadMovieNum(“nameOfExternalMovie.swf”, level as a number);  
}[/AS]

notes:

1. don’t quote the level number - just put in the appropriate digit,
2. any loaded movie will bump any other content that is allready on the same level number,
3. higher level numbers will lay over top of content of lower numbered levels, so plan where you want new stuff to show up (\_x & \_y position)
4. root level is allways 0

---

<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: [June 26, 2003, 11:41am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/6 "2003-06-26T11:41:02Z")

</div>

Make emptyMovieClips and position there x/y coordinates then use loadMovie.  
Its so much easier to work out where you want to load your external swf.

You could also use loadMovieNum.

If you need a detailed explaination of how to use loadMovie with empty movie clips let me know and i’ll track down the thread i wrote about it in a different forum.

Viru.

---

<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: [June 26, 2003, 9:09pm UTC](https://forum.kirupa.com/t/loadmovie-actionscript/24095/7 "2003-06-26T21:09:23Z")

</div>

> \*Originally posted by RelandR \*  
> \*\*on your button::  
> [AS]on (release) {  
> loadMovieNum(“nameOfExternalMovie.swf”, level as a number);  
> }[/AS]

notes:

1. don’t quote the level number - just put in the appropriate digit,
2. any loaded movie will bump any other content that is allready on the same level number,
3. higher level numbers will lay over top of content of lower numbered levels, so plan where you want new stuff to show up (\_x & \_y position)
4. root level is allways 0 \*\*

follow this and you will be ok, justr remember to unload your movies accordingly  
[AS]  
unloadMovieNum(1);  
[/AS]
