1 Reply Latest reply on May 14, 2010 1:55 PM by Chris W. Griffith

    Can we import a SWF (catalyst) inside a flash movie.

    Saladin2005 Level 1

      Example :

      loadMovie("MyCatalyst.swf", ...)


      I'm trying doing that but nothing comes up !


      Thank you

        • 1. Re: Can we import a SWF (catalyst) inside a flash movie.
          Chris W. Griffith Adobe Community Professional

          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);




          Hope this helps.


          1 person found this helpful