PDA

View Full Version : interfacing with Javascript


makogen
04-23-2009, 05:29 PM
Hi,

I'm really curious if a flex application can be set up to interface with a javascript dominant site. I don't have any control over editing it so it would have to load its settings from the site, and control events within the site. Basically I'm making a gui to interface with the site for me, and i'll also be using interfacing with Autoit to automate other processes.

Soo...
is it possible to interface with a javascript dominant site with flex?
and is it possible to interface with more than one program with the external API?

Thanks :)

wvxvw
04-23-2009, 05:45 PM
That's for one:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html

And as an example you may look here:
(Something I've composed to control Shadowbox JS in the page from Flash)
http://code.google.com/p/e4xu/source/browse/#svn/trunk/src/org/wvxvws/jsutils/shadowbox
Another simpler example:
http://www.actionscript.org/forums/showthread.php3?t=204522&page=2