This content has been marked as final.
Show 1 reply
-
1. Re: Can we import a SWF (catalyst) inside a flash movie.
Chris W. Griffith May 14, 2010 1:55 PM (in response to Saladin2005)Yes you can. The first thing is when you publish your project, make sure that you choose the "Build to view offline" option. This will roll all the Flex Framework into the resulting swf. This will be mean your resulting swf will be larger. Also note that your FLA must use ActionScript 3.
Here is some sample code to load the swf into your Flash Professional project.
import flash.display.*;
import flash.net.URLRequest;
var ldr:Loader = new Loader();
var url:String = "Main.swf"; //The Catalyst made swf
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
Hope this helps.


