PDA

View Full Version : load movie problem


maowang
04-20-2002, 08:27 PM
Hi Guys,
I'm having load movie problems, and I've searched the forums, but didnt find anything like my problem. Ok, heres the problem. I have a main movie which has 3 buttons and each of them will load a seperate swf. I used the load movie command, the code is

loadMoiveNum ("info.swf" , 2) and when i tested the button, it did load, but somehow its transparent, I am seeing bothe the "info" and my main movie together. how can i assign the "info" to its own window?
thanks

JHallam
04-20-2002, 08:58 PM
Okay, try

// Create a Blank MC, call it targetMC
// Place it on the root on its on own layer on top of the rest
// Instance this to targetMC

on (release) {
_root.targetMC.loadMovie("info.swf");


That will work fine :D

maowang
04-20-2002, 09:12 PM
Hi Graphix,
thanks for you reply, I've tried your code, but nothing happend. It didnt even load the movie....
thanks

maowang
04-20-2002, 09:14 PM
i take it back, it works, but the result was same as my problem, the "info" is still transparent

JHallam
04-20-2002, 09:25 PM
Hmmm...do you mean, you can click other buttons under the SWF or do you mean you can actually see other stuff behind the loaded swf?

Just upload the fla here or send it me at hallam4@ntlworld.com

JHallam
04-20-2002, 10:11 PM
Okay,


on (release) {
loadMovieNum ("info.swf", _parent);
}


That works fine

maowang
04-20-2002, 10:30 PM
thanks graphix,
it finally works =) is it possible to open it from a seperate window? otherwise, how can i go back to the main movie

JHallam
04-21-2002, 12:32 AM
Simply if you want to remove the clip use this on a button


on(release) {
UnloadMovie ("info.swf", _parent);
}