mindfriction
March 25th, 2003, 07:23 AM
Hi im using th loadMovie to load 2 seperate movies into one main movie. One of the movie im loading in, loads varaibles from a text file. Currently I do this inside the movie itself. The movie loads fine with
loadMovie("movie1.swf", _root,holder");
except it seems that the individual movie itself hasnt had enough time to load it vars from the text file. Imhaving trouble getting my brain around this as I also am having troubles with a preloader, but If i could get this working, im half way there. Anyway I gather I should probably be doing the following steps;
1)loading the contents of any text files into LoadVars objects in the main movie.
2) then when I use loadMovie(), pass the relevenat LoadVars Obj (which has the vars from a textfile) to the relevant movie (swf) being loaded
->Can anyone offer some advice?, point me in the right direction? or provide a code snippet?
~ Ideally if I could get this working and the preloader (which reads bytes of the loaded swf in "holder") I could sleep a little better
loadMovie("movie1.swf", _root,holder");
except it seems that the individual movie itself hasnt had enough time to load it vars from the text file. Imhaving trouble getting my brain around this as I also am having troubles with a preloader, but If i could get this working, im half way there. Anyway I gather I should probably be doing the following steps;
1)loading the contents of any text files into LoadVars objects in the main movie.
2) then when I use loadMovie(), pass the relevenat LoadVars Obj (which has the vars from a textfile) to the relevant movie (swf) being loaded
->Can anyone offer some advice?, point me in the right direction? or provide a code snippet?
~ Ideally if I could get this working and the preloader (which reads bytes of the loaded swf in "holder") I could sleep a little better