# Load movie

**URL:** <https://forum.kirupa.com/t/load-movie/118829>\
**Category:** Uncategorized\
**Created:** [August 9, 2004, 3:00pm UTC](https://forum.kirupa.com/t/load-movie/118829 "2004-08-09T15:00:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flufilms](https://avatars.discourse-cdn.com/v4/letter/f/e56c9b/32.png) [@flufilms](https://forum.kirupa.com/u/flufilms)\
**Post date:** [August 9, 2004, 3:00pm UTC](https://forum.kirupa.com/t/load-movie/118829/1 "2004-08-09T15:00:29Z")

</div>

I have used this code to load a movie into a project

on (release) {  
loadMovieNum(“sun1.swf”, 1);  
}

works perfectly however there is one thing that is beyond me, … well lots actually!

This code does not allow me to load multiple instances of the same movie file, if I load the file and then press it again it unloads the first and reloads another, is it possible to use the loadmovie command to load duplicate copies of the same .swf file??

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)\
**Post date:** [August 9, 2004, 3:32pm UTC](https://forum.kirupa.com/t/load-movie/118829/2 "2004-08-09T15:32:53Z")

</div>

Not sure about loading duplicate copies of the same file but if you load them into the same level (1) they will automatically unload the movie that was loaded into that level.

---

<div class="post-metadata">

**Author:** ![flufilms](https://avatars.discourse-cdn.com/v4/letter/f/e56c9b/32.png) [@flufilms](https://forum.kirupa.com/u/flufilms)\
**Post date:** [August 9, 2004, 3:43pm UTC](https://forum.kirupa.com/t/load-movie/118829/3 "2004-08-09T15:43:30Z")

</div>

I would like I guess to create a script that says

“if a movie clip called Sun1 exists, then duplicate it - else - load sun1.swf”

Unforunately I am very very new to flash and don’t stand a chance of figuring that out!

---

<div class="post-metadata">

**Author:** ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)\
**Post date:** [August 9, 2004, 3:54pm UTC](https://forum.kirupa.com/t/load-movie/118829/4 "2004-08-09T15:54:09Z")

</div>

Well you are in the right place then. Unfortunately my scripting knowledge is very limited as well, but there are so many smart helpful people in this forum, I have really learned a lot here. My advice is use the search feature of the forums, and us the help menu that comes with Flash, it has some great definitions and tutorials. Also, [macromedia.com](http://macromedia.com) has some tutorials in the developer section (devnet)

I would recommend that you do a seach for “duplicate swf” or something along those lines.

Good luck with your project and sorry I can’t help you more with the code.

---

<div class="post-metadata">

**Author:** ![flufilms](https://avatars.discourse-cdn.com/v4/letter/f/e56c9b/32.png) [@flufilms](https://forum.kirupa.com/u/flufilms)\
**Post date:** [August 9, 2004, 4:01pm UTC](https://forum.kirupa.com/t/load-movie/118829/5 "2004-08-09T16:01:45Z")

</div>

Thanks buddy, have a good one
