View Full Version : How to load a swf in Main swf
Pyroclasm
04-01-2002, 02:41 AM
Guys, i have been fighting with this. How do i load a swf file on to my main swf file's stage in a specific location and size, and with it on _level1? I want it to arrive with just a click of a button on the main stage.
farafiro
04-01-2002, 04:50 AM
// make an empty MC with just an out line (circle or somthing) with
the size u want "i will call it holder"
// make a button and attach that code to it
on(release){
loadMovie("loadedMc.swf", target)
}
just remember to put both of the swfs in the same directory
Pyroclasm
04-01-2002, 04:25 PM
thanks farafiro, that helps alot. So let me understand this, when you put something on a _leveln, it automatically stretches to the main timeline's swf movie. And the only way to get a external swf(external MC as i take it ppl say...not sure though) to appear in a location specifically with a certain scale is to put it in a empty or existing MC. Is this correct?
farafiro
04-02-2002, 09:48 AM
1- what do u mean by "stretches "??
2- yep the only way is as u mentioned
Pyroclasm
04-02-2002, 10:26 PM
oh, well what i ment by stretches was that if the external movie is 1" by 1", and the stage is bigger, the external mc is rescaled to fit. Thats all I ment. Well thanks for all your help
farafiro
04-03-2002, 06:46 AM
no, it won't stretche. I think will only do that if u loaded it into a target one
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.