Loaded movie not working

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!

:hangover: :hangover: :hangover:

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

I am loading my external swf on a movie clip:

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

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.

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

THanks!

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 :-\

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 :slight_smile:

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

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 :slight_smile: