2 Flash objects communicationg MPU & Banner

Hello everyone,

Is it possible to have 2 flash adverts let say an MPU and a banner interacting together? Or even 2 flash objects in a page to interact?

The client wants to have an action on the banner when the user hover the MPU and vice versa. We can control the ad inventory to have our specific flash ads displayed or even put 2 static flash objects.

Thanks for your help,


You’ll have to use Javascript as an intermediary between the two. Basically you have one Flash call a Javascript function, which then calls a Flash function in the other one.

Check out ExternalInterface for more info:

You don’t need to use javascript at all you can use the localConnection class to communicate directly between multiple swf’s in a page

Cool. I do a lot of intensive stuff in Actionscript and never knew about that (never had to get two SWFs to communication directly).

Here is the reference to the function: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/LocalConnection.html

Guys I much appreciate these quick and complete responses!

I used to develop a long time ago :wink:

Have a good day