PDA

View Full Version : Help Loading Movies


Joax23
03-07-2006, 08:29 PM
I was wondering if somebody can help me out. What I am trying to do is, load a movie into a blank movie. But inside the loaded movie, I want to load a movie into the first movie I loaded.

Main Movie
MC1
MC2
MC3

I want to load MC1 into Main Movie and then load MC2 into MC1. I think the problem might be with the path I am calling. Can somebody please help me. Thank you very much.

JT

mcmcom
03-07-2006, 08:41 PM
ok so _root is your main movie. you didn't specify if the movies you want to load are in the Library or External, that matters. For Library movies you use
_root.attachMovie('linkageIdofLibraryMovie');
for external movies you use:
_root.loadMovie('urlPathToExternalMovie');

so you could do something like

_root.loadMovie("mc1","mc1");
mc1.loadMovie("mc2","mc2");
mc2.loadMovie("mc3","mc3");


However you may want to make a function to make sure the movie is loaded BEFORE you try loading another movie into it. a function to check if its loaded would have an if statement that looks at GetBytesTotal() and compares it to GetBytesLoaded() if they are the same, the movie is loaded.

HTH,
mcm