This content has been marked as final. Show 8 replies
example1.swf must be loaded into some target (movieclip or _level). after loading is complete you can use that target to reference the main timeline in example1.swf.
so, for example, if you want to direct the main timeline of example1.swf to goto and stop on its 55th frame (and it's loaded into targetMC) you would use:
oo ok, i didnt know that was possible to do :/..lol. What woudl be the syntax for loading the file into a specific _level? and if i load another movie into that same level does the first movie automaticly get replaced and unloaded? or do i have to code that?..This is how iv been loading up till now
_Rightloader = new Loader();
addChild( _Rightloader );
_Rightloader.load( new URLRequest( "MovieOne.swf" ));
is this right? Or is there a better way? Also, one last question. The targetMC example you gave. Is targetMC the instance name of an already existing movie file i want it to replace? or is it a instance name the newly loaded movie file will inherit and there doesnt have to be a movie file already named that on the stage? or none of the above? (if that makes sense..lol)
(and ty so much for your time and help yet again kglad^^)
oops, that's as3 and the code i gave is as2.
there are no levels in as3. you load into a loader and you reference the loader's content property to reference the root timeline of the loaded swf:
gives me this error message
1061: Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display:DisplayObject.
heres the full script incase ^^
cast it as a movieclip:
works perfect^^ ty so much :)