The Flash SWFs should also be able to use the
SomeSingletonClass.someMethod()

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mnorrstrand
Sent: Wednesday, April 02, 2008 3:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Child-parent communication, Flex and Flash

 

Hi

I'm building a framework where a third party will deliver Flash swf's 
to be loaded into my Flex app (probably using SWFLoader). How do the 
loaded child swf communicate with the parent Flex app? For instance if 
i have a function in a class in the main app (would be a Singleton), 
eg SomeSingletonClass.someMethod(), how would the child swf call that 
method? I have looked at LocalConnection but would rather be able to 
call functions directly in the parent Flex app. Flash swf will be 
Flash 9. Main Flex app will be in a HTML wrapper. For communication 
down to the child I assume using swfLoader.content.someMethod is the 
best idea.

Regards

 

Reply via email to