How to load Flex4 swf files into Flex3 application or vice versa?

I think the title of the post explains the problem :) Loading a swf file into a Flex project is simple : SWFLoader !
I made a project by Flex4SDK and got the swf output named as LoadMe.swf . Then I tried to load LoadMe.swf file into my Flex3 project by this line of code :

Then I got the annoying error message : VerifyError: Error #1053: Illegal override of callInContext in _Main_mx_managers_SystemManager.
Why was it  illegal? It was just swf file and actionscript code :) After some googling I found the solution at Adobe’s cookbook. Just add loadForCompatibility=”true” in your mxml tag.  Hope this helps you too!

Leave a Reply

*

This blog is kept spam free by WP-SpamFree.