Hey guys, just wondering, whats the coding you place on a button to load an external swf into a mocie clip on another level?
I forgot it!
Thanx!
:q:
Hey guys, just wondering, whats the coding you place on a button to load an external swf into a mocie clip on another level?
I forgot it!
Thanx!
:q:
loadMovieNum
Yeah i got that bit, but can you make it load into an empty movie clip though?
Loading into a movie clip requires loadMovie() and loading into a level requires loadMovieNum()
I know in Flash MX to load to a target movie clip you use the syntax…
targetMovieClip.loadMovie(“file.swf”)
It should be the same in Flash 5.
targetMovieClip.loadMovie(“file.swf”)
where you have “MovieClip” i just put the instance name there right?
how bout if i want to put it on a level though?
That just goes after after the swf bit?
so i would put this:
targetMovieClip.loadMovie(“swf”, 5);
would that be right?
I bet your gona answer to my web thread too!
I don’t believe you can load to a clip and a level.
And yes, you put your instance name there.
If you want your movie to load behind or in front of something, you will just have to put your movie clip on that layer.
In Flash MX you can create an empty movie clip in AS and define that clips level, then use loadMovie on it, but that doesn’t work in Flash 5.
In 5.0 the syntax for either is as follows
loadMovie(“file.swf”,“targetClip”);
loadMovieNum(“file.swf”,n);
(where n is the target level number)
:: Copyright KIRUPA 2024 //--