You can pass commands and arguments from a Flash movie out to JavaScript functions in the host HTML page. The format you need to use is:
fscommand(command,arguments);
The "command" name is picked up in JavaScript (it's the name of a nominated function) and the "arguments" are passed into that function. There's a dedicated publish option in Flash 5 to create an HTML page with the necessary DofS_command JavaScript code embedded so that all you have to do is add your function in an area usefully called "insert your code here".
It's pretty powerful and you can use the JavaScript to do anything from launch new pop-up windows to controlling embedded ActiveX components, all you have to do is write the necessary functions and pass parameters out to them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.