Thursday, August 20, 2009

Getting Flash Windows to Shake Hands

Have you ever needed to embed Flash movies in two separate windows, then get the two Flash windows to communicate with one another? With the ActionScript 3.0 ExternalInterface class, you can get the Flash objects to communicate with one another through their respective window clients.

Each of the Flash movies will include ExternalInterface call and addCallBack methods to relay function calls through JavaScript functions in their HTML pages. The pages need to be able to reference each other's window, which can be done using Window names.

Ok, I know I should post an example of two Flash windows talking to each other. It's doable, I assure you. Someday when there's less crunch at work and more time at home I'll be able to post such an example. Meantime... sorry, lame excuse.

Aloha, Joe

No comments:

Post a Comment