Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to do this:
SetVariable(name, value)
on the Flash movie's DOM element. This is super-legacy, but still encountered in the field.Note that communication between a Flash movie and a piece of Javascript code is blocked unless they both live on the same domain. You can lift this restriction by adding a allowscriptaccess="always"
attribute to the Flash movie's <embed>
tag, and a <option name="allowScriptAccess" value="true" />
child tag to the Flash movie's <object>
tag (which we keep around for Internet Explorer).
The attached link has more information.