PDA

View Full Version : trouble importing swf into another flash...


spike101
11-17-2007, 03:06 AM
I made two fla files and I want to import the product of one (swf) into the other fla file. However, when I make a seperate mc and import to stage with the swf, it's black and all of the tweens, etc. are gone.

Can anyone tell me how I can export from the one fla so that all the effects are self contained and then import it into the other one?

atomic
11-17-2007, 03:10 AM
You don't import .swf... Your either dynamically load it in the other main.swf, or you copy the second .fla into the first one...

Importing a .swf into a .fla, will only import the graphics and no actionscript.

spike101
11-18-2007, 03:45 AM
so do I have to take it bit by bit or is there a 'one shot' deal for importing one flash into another?

Sorry, new to flash.

kool-Aid
11-18-2007, 08:29 PM
OK, you want to publish a working swf, then import it into anther published swf. Right? You don't import it in flash itself (where your timeline is etc.) What you do is this.

put this code in your main timeline where you want to import the other swf.


stop();

///this creates an mc to hold your swf

this.createEmptyMovieClip("loady",5);
loady._x = 0;///whatever x coordinate you want
loady._y = 100;///whatever y coordinate you want

//event that calls your load function
loady.onEnterFrame = loadIt;

///function that loads into the mc you created

function loadIt()
{
loady.loadMovie('xmlList.swf');

}
if you want one movie to display another finished swf