View Full Version : Coding mc !!
Dave
November 11th, 2002, 11:45 PM
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:
lostinbeta
November 12th, 2002, 12:05 AM
loadMovieNum
Dave
November 12th, 2002, 07:26 AM
Yeah i got that bit, but can you make it load into an empty movie clip though?
:smirk:
lostinbeta
November 12th, 2002, 02:13 PM
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.
Dave
November 13th, 2002, 08:43 AM
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?
:smirk:
I bet your gona answer to my web thread too!
:P
lostinbeta
November 13th, 2002, 02:26 PM
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.
upuaut
November 14th, 2002, 03:14 AM
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)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.