I let my Flash coder colleague took care of the Flash side, he needed to implement ExternalInterface, register some callbacks methods that I could call and more importantly change some security settings to make it work.
On my side, I just needed to get the
objectelement holding the Flash
swfobject.getObjectById it was pretty easy) and call the callback
method registered in Flash on it.
Piece of cake.
Have a look at this blog post from CircleCube, it does a pretty neat job at explaining all of that.
I finally had some issues with this implementation. It was working perfectly on some servers but not on others. We finally found that calling Security.allowDomain('*.mainhost.com') wasn't working.
You have to explicitly allow each domain/subdomain.
As our code would be deployed on various duplicate domains, we had to manually pass as a flash var the domain to allow.
Want to add something ? Feel free to get in touch on Twitter : @pixelastic