Communication between Flex 2 and Flash 9

I found a great tutorial on making Flex and Flash work together.
http://www.actionscript.org/resources/articles/501/1/Flex-2-and-Flash-9-Together/Page1.html

Here’s how it works…
You can declare a function to take place on the flex SWFLoader component’s “complete” event.
in that function, you can view / edit the contents of the Flash 9 SWF that was loaded via the content property for your SWFLoader. Ex: mySWFLoader.content["element"].

This is particularly useful for allowing an SWF to set the size of the object it is loaded into, trapping events from within the loaded SWF, etc.

Thanks to Hasan Otuome for the original article over at actionscript.org

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>