-
1. Re: importing a external .swf
kglad May 6, 2009 6:55 PM (in response to nogreydes)you can load an external swf and you can import an external swf. but importing it will lose all the functionality and whatever code is in the swf.
-
2. Re: importing a external .swf
nogreydes May 6, 2009 8:38 PM (in response to kglad)i found this quite helpful if anyone needs it as well. It worked for me. This is from a Flash tutor.....
So the steps would be as follows:
Create your main interface file (your main app/site)
Create a new .fla which is the content you wish to load. Let's say it's
called "my_content.fla".
Publish the new content fla and make sure it's in the same directory as your
main file. Working with the name from above, you should now have a
"my_content.swf" file in the same directory as your main file.Back in your main file, create a new EMPTY movieclip (Insert-> New symbol).
In the timeline (of your main file), when you get to the place you want to
load in the new content swf, Place an instance of your new empty movieclip.Give it an instance name ie. "contentHolder_mc".
Add a new keyframe to your code layer at that same point in the timeline.
Add code similar to the following:
contentHolder_mc.loadMovie( "my_content.swf" );
Make sure you place an blank keyframe on your contentHolder_mc's layer when
the insatance should no longer exist
-
3. Re: importing a external .swf
Ned Murphy May 9, 2009 5:20 PM (in response to nogreydes)You can also use the MovieClipLoader.loadClip method to load external files. The loadClip method is a much more versatile method because it supports the use of listeners. And instead of creating an empty movieclip in the library, you can create one dynamically using the MovieClip.createEmptyMovieClip() method


