PDA

View Full Version : Loading an etxernal .swf into a movie clip??


elmcitizen
03-10-2003, 08:01 PM
ok, i know theres way for you to load an external .swf into a movie clip in the main .swf. im looking for a way to load individual movies as i need them, each would have its own preloader etc. and all the external movies would be the same dimensions and be loaded into the same empty movie clip.

Now from what i think i know, i create a empty movie clip w/ the dimensions of the .swf that i am planning on loading.
what i need to know is there anything special i need to do to that movie clip? (we can call it contents_mc)
also whats the actionsript that i need to call the external .swf to load?

I know im asking alot, but any help would be much appriciated!

Billy T
03-10-2003, 11:18 PM
just create a blank movieclip - doesn't have to have anything inside

place it on the stage where you want the top left corner of your external movies to appear and give it an instance name of "content_mc"

then use

loadMovie("whatever.swf","_root.content_mc");

in your external movie preloaders make sure you refer to

this.getBytesLoaded()

and not

_root.getBytesLoaded()

etc

cheers

elmcitizen
03-11-2003, 03:05 PM
Thanks so much youve made my life a billion times easier, do i need to click export for actionscript or any thing on content_mc? if not its easier than i thought...

Billy T
03-11-2003, 08:02 PM
anything that is manually placed on the stage will be included in the swf

cheers