# Loaded movie not working

**URL:** https://forum.kirupa.com/t/loaded-movie-not-working/13642
**Category:** Uncategorized
**Created:** [February 16, 2003, 2:59am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642 "2003-02-16T02:59:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![3dsound](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/3dsound/32/78_2.png) [@3dsound](https://forum.kirupa.com/u/3dsound)
#### Post date: [February 16, 2003, 2:59am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/1 "2003-02-16T02:59:08Z")

</div>

I am trying to load a swf from my main movie. That external file is a scripted magnifying lens going through a map… the magnifying lens function doesn’t work when loaded as an external file, and in fact most of my actionscripted swf don’t! … They all work perfectly loaded as level, but not on target. (and it has to be on target)

Is there anything I can do?

Thanks!

---

<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: [February 16, 2003, 6:43am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/2 "2003-02-16T06:43:50Z")

</div>

:hangover: :hangover: :hangover:

---

<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: [February 16, 2003, 7:28am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/3 "2003-02-16T07:28:39Z")

</div>

sorry what do you mean by ‘on target’? and what code did you use to load your swf?

---

<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: [February 16, 2003, 7:38am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/4 "2003-02-16T07:38:38Z")

</div>

I am loading my external swf on a movie clip:

on (press) {  
loadMovie(“movies/map.swf”, “loadmovie”);  
}

---

<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: [February 16, 2003, 9:37am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/5 "2003-02-16T09:37:20Z")

</div>

Did you try giving the instance name a different name?

loadmovie is a specific Flash function, and being that in most cases flash is not case sensitive, this could be the problem.

BTW, and easier way to write loadMovie would be  
\_root.containerClip.loadMovie(“yourFile.swf”)

Also… when loading a movie in, any code inside that loaded movie that uses \_root will think youa re talking about the \_root of the main .swf that you loaded into. Use “this” instead.

---

<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: [February 16, 2003, 8:06pm UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/6 "2003-02-16T20:06:32Z")

</div>

Well, I am lost here, I am not using any \_root function, I can’t seem to make it work and I’ve trying the last 2 days to find a the solution… Here is my last resort…  
I put a link to the files if you guys would be willing to take a look at it …

[main.zip](http://www.pearljamorb.tscwd.com/main.zip)

THanks!

---

<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: [February 16, 2003, 8:34pm UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/7 "2003-02-16T20:34:21Z")

</div>

This issue has me stumped.

For some reason when you load the movie in, the button doesn’t react. It won’t even react to a trace. No matter what I do it doesn’t want to cooperate.

Sorry, I don’t know whats up :-\

---

<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: [February 16, 2003, 8:38pm UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/8 "2003-02-16T20:38:07Z")

</div>

WAIT… I FIXED IT!

You gave us a file called map.swf to load in, but the .fla for it was called magnifier.fla. So the exported .swf from that was magnifier .swf.

So it wasn’t loading the correct file, so it never worked. grrrr.

Check the attachment, I updated some of the code for MX so it would be easier 🙂

---

<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: [February 16, 2003, 10:33pm UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/9 "2003-02-16T22:33:27Z")

</div>

:bounce: (-:  
thank you soooo much!!! You got me out of this mud!!! I am so happy !!!

---

<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: [February 17, 2003, 3:05am UTC](https://forum.kirupa.com/t/loaded-movie-not-working/13642/10 "2003-02-17T03:05:46Z")

</div>

No problem, but man I can’t believe I spent 30 minutes working on that thing without realizing I wasn’t loading the right file.

\<— stupid 🙂
