[thelist] changing html background colours from swf movie

John Dowdell jdowdell at macromedia.com
Tue May 8 18:00:26 CDT 2001


At 1:58 PM 5/8/1, Rachel Starr wrote:
> I want a button in my flash movie to trigger a change in
> the background colour of the html page (not in the flash
> background). Anyone have any code for this?  Thanks!!

Well, the SWF file playing in the Macromedia Flash Player can ask the
browser to do something, but whether it does it or not (or even whether it
hears the request) is up to the individual browser, sorry.

The basic mechanism for outgoing communication to JavaScript is the
"FSCommand" material described in the documentation and technotes.
Currently, browsers which can listen to plugins/controls include
Java-enabled Netscape 3.x and 4.x on Mac/Win, and ActiveX-enabled IE3+/Win.
(IE/Mac and Netscape 6 do not support this, and minority browsers or
Java-disabled Netscape do not offer this either.)

If you can put both interactivity and media within the SWF file, then you
would have a more predictable environment to work with, and you can get the
desired interactivity across a wider range of browser choices.

jd





John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/






More information about the thelist mailing list