1 Reply Latest reply on Mar 2, 2010 4:43 PM by Gregory Lafrance

    embed Flash swf into a Flex project

    M_a_s_P

      Hi people,

       

      I have a flash application which is build using a AS class (I dindn't do it myself, I bought it). It's a 3D image flow. I need to include the swf in a Flex Project. The application retrieves data from an XML file and I have been careful with all the correct path to it.

       

      I have tryed to embed the swf file using differnt methods, I can see the http request to the swf file, but nothing is really shown.

       

      In Flex, can I embed any swf file or I have any sort of restrictions?

       

      I used the Loader class but it doesn't work and now I run out of idea.

       

       

                      var loader:Loader = new Loader();
                      var urlReq:URLRequest = new URLRequest("assets/image/Flow/imageFlow.swf");
                      loader.load(urlReq);
                      this.rawChildren.addChild(loader);

       

       

      Thanks for any help.

       

      M.