Here's a link to a to a little proof-of-concept demo app that calls an alert
in an embedded Flash object from a Qooxdoo button...and visa-versa!
How it was built:
It was built using
1.) Qooxdoo 0.7.x legacy build, vintage December 2007
2.) swfobject for inclusion of Flash
http://blog.deconcept.com/swfobject/
http://code.google.com/p/swfobject/
3.) FABridge flex and javascript files for 2-way communication
http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge
A zip of the full source can be obtained here:
http://sandbox.tartansolutions.com/flexdemos/
A modification of the FABridge.js file was made, in order to make it
compatible with the swfobject in Firefox:
'var flashInstances = document.getElementsByTagName("embed");'
was changed to
'var flashInstances = document.getElementsByTagName("object");'
(thus, the "2" in the "swfobject2.js" include)
Why it was built
We have aspirations of making use of open-source flex & flash objects in our
Qooxdoo-based applications. Here's an example of some really snazzy OS Flex
demos that would be great eye-candy within a Qooxdoo app:
http://demo.quietlyscheming.com/InteractiveBubble/InteractiveBubble.html
Here's some more nice Flex gadgetry: http://www.quietlyscheming.com/blog/
Licenses:
swfobject: MIT
FABridge: MIT
FAQ
Why didn't we just use qx.ui.embed.Flash instead of bringing in the other
javascript files?
1.) qx.ui.embed.Flash doesn't enable 2-way communication, with all of the
functionality of the FABridge
2.) qx.ui.embed.Flash wasn't compatible with the FABridge. We couldn't get
them to play nicely in IE.
3.) swfobject seemed a bit heavy, but it seems to be the best-in-class Flash
inclusion mechanism.
Why did we modify the swfobject?
As-is, it wasn't compatible with FABridge in FF.
Was this a fun exercise?
No.
Qooxdoo has sheltered me from the frustration of cross-browser compatibility
challenges. This was a painful reminder of how "the other side" lives.
--
View this message in context:
http://www.nabble.com/Qooxdoo---Flex%3A-two-way-communication-demo-tp15198071p15198071.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel