Passing Variables from Flash 5 to JavaScript
When the fscommand() statement was added to the Flash ActionScript lexicon way back in Flash 3, many developers were optimistic about easily passing variables from Flash to an HTML page via JavaScript. However, something happened along the way, and about the only browser around that supports the fscommand() and JavaScript is version 4 of Netscape Navigator. Tested on NN6.1, the fscommand() was not recognized in the browser, and while IE can handle a VBScript version of an fscommand() statement, it doesn’t respond to the JavaScript version.
In Flash, the fscommand() has this format:
fscommand(command,args);
The two arguments in the function, command and args, can be two strings, variables, or a function ...
Get JavaScript Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.