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;
Is there any way to do it or is it not possible at all to load Flex4 swf in Flex 3 application.
That configuration is not supported. The first SWF loaded has to be of the same version or newer than the other SWFs.
Does the same hold for module also.
Module rules are very strict. All modules must be built using the same SDK version as their loader.