3 Replies Latest reply on Mar 16, 2012 8:20 AM by Flex harUI

    Load flex 4 application in flex 3

    Avi Baraswal

      We have a flex 3.5 application that requires to load flex 4.5 swf. I have tried swfloader to load flex 4 swf with loadForCompatibility to be true, but it didn't worked out. It didn't give any error, but nothing comes up on screen. I have tried to place the debug pointes on component lifecycle event handlers (preinitialize, initialize, applicationComplete), but none of them executed.


      It looks like swf is getting loaded properly, but its component lifecycle is not getting triggered. I have tried following code.

           var loader:SWFLoader = new SWFLoader();

           loader.loadForCompatibility = true;

           loader.percentHeight = 100;

           loader.percentWidth = 100;

           loader.addEventListener(Event.COMPLETE, loadCompleteHandler);

           loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);




      Is there any way to do it or is it not possible at all to load Flex4 swf in Flex 3 application.