PDA

View Full Version : Can an swf be loaded to an MC and level?



3dron
August 16th, 2002, 02:45 PM
I have a preloader that calls a function to check whether a whole 2nd swf has loaded.

Then when it's loaded it plays the 2nd swf to a traget MC.

But I also need that MC and swf to be on another level.

This doesn't seem to work for me.

host.loadmovie("main.swf", 4)

It ignores the level part and just loads to the current levels host.

Is there a way to do this?

RR

iceman
August 16th, 2002, 03:23 PM
Well if host is your movieclip then you want to totally eliminate that from your code and try just loading it into your desired level.

Hope this helps


Kyle:)

upuaut
August 17th, 2002, 01:25 AM
I'm not 100% on this but you might try this

loadmovie("main.swf",_level4.host);

levels can be refered to with "_level"+n in any dot notation string.