PDA

View Full Version : javascript and php



danielKirupin
June 20th, 2007, 02:31 AM
To send and receive variables between actionscript and java, is the ExternalInterface() still THE way to do it?

And also, I havent worked that much between actionscript and php in previous versions, but did it changed with actionscript 3.0 ? Im asking that couse I ordered some books to work with actionscript 2.0 and php, so I just waanted to be sure that I will be able to migrate code, or is it completely different now Thanks !!!

douglaae
June 20th, 2007, 03:53 PM
It looks like the ExternalInterface class in AS3 is still the communication channel of choice. See: http://livedocs.adobe.com/flex/201/langref/flash/external/ExternalInterface.html

I had been using AS2's getURL("javascript:...") and AS3's navigateToURL("javascript:..."), but it looks like the ExternalInterface class allows for callbacks in JavaScript and such.

For questions like these, the AS2 migration reference is a great resource: http://livedocs.adobe.com/flex/201/langref/migration.html.

Happy coding,
Andy