|
-
help with "loadMovie"
Im wondering now, how can I use the loadMovie to load a movie onto an MC that has been loaded onto another....do you follow? for example MC_A loads MC_B, then MC_B loads MC_C, all of which are to be visible at the same time.
I thought about using the attachMovie because with it you can give the new MC a variable name, but it didnt work....
it looked like this
on(release){
_root.stage1.attachMovie("_What.swf", "what", 1);
}
so I decided to try using "loadMovie"
any advice would be much appreciated!
Mark
-
Hi Mark...
If i remember rightly... u need to tell the new swf where to load.. which clip it is nested into..
as in
on(release){
MC_A.attachMovie("MC_B.swf", "MC_B", getNextHighestDepth(), {_x:Pos, _y:Pos});
}
^^ if already in Lib
on(release){
MC_A.loadMovie("MC_B.swf", "MC_B", getNextHighestDepth(), {_x:Pos, _y:Pos});
}
^^ if external.. don't quote me on that one though..
That "should" attach the movie Clip "MC_B.swf" to a layer above MC_A the position you set with the x and y...
using getNextHighestDepth is a good method for making sure the mc's are added to an higher depth.. u could if u know ur depths... 3 instead of that method..but that's ur choice to make.
hope that helped a wee bit.
Andy
Last edited by ukspudnie; 05-15-2006 at 08:49 AM.
-
Senior Member
hi
if you want to load a movie into a nested MC you have to make sure all of your MCs have intance names, so lets say we have 2 clips, labeled clip1 and clip2. clip2 is nested inside clip1. use something like this.
Code:
//loading a clip into clip2
_root.clip1.clip2.loadMovie("yourmovie.swf")
Hope that helps
-
I got it! actually it was simple....just tired I guess.
I overlooked the fact that the first MC is loaded onto a "stage" MC so when loading the 3rd MC it would need the first stage instange in the path aswell.
on(release){
_root.stage1.stage2.loadMovie("blah_mc.swf", 1):
}
but thank you for taking your time to help out!
Mark
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|