Saturday, March 27, 2010

Change website background with...

I'm creating a full flash website and I'd like to be able to
change the site's background color within flash. The swf itself is
only 1000 pixels wide and 600 pixels high. The design is a
horizontal band across the middle of the site that will be
continued on the right in a div with css. (once the flash movie
runs out after 1000 pixels)



I'd intended to set the flash movie's background color to
transparent and just let the html container's background color show
through but I'd like to change the background color of the site
depending on what section you're browsing in the flash movie.



Is there any way to use actionscript to ''talk'' to the html
site? It's style sheet? or javascript? something that would allow
me to change the site's background color from within the flash
movie?



Thanks for any help.Change website background with...
you can use javascript to control your html page's background
color and flash can communicate with javascript. in flash 8 and 9,
you can use the externalinterface class.

No comments:

Post a Comment