-
Anyone know how to change the background colors of a html document from within a flash movie? an example of what I mean it here... http://fusionmediagroup.com/showroom/pcg/main1.html
Please help I'm under a deadline...
thnx
-Prof X
-
Sorry to disagree jydnas, but they do seem to change the HTML background. The colour outside the Flash movie does change (whether this is the backgroud, a resized gif image, or recolouring a table cell...).
My Java and VB script isn't up to decifering exactly what they're doing but it seems to be some VB script to amend the colour.
Rich.
-
I had alook at that site.
Are you sure that the HTML document bg colors changed?
I don't think they did.
As far as changing colors the main .swf sets the bg color so i don't think it can be changed.
You could make your Flash web site in a way that creates an illusion of the background changing colors.
Did you ask the webmaster if that is what is really going on?
You could e-mail him and ask him.
-
Just make a call to Javascript:
GetUrl("javascript:document.bgcolor="#ff0000")
if you want to make the background color change to red.
Now, if you want to slow fades, like that other page did in some cases, it gets more complicated, and you'll have to create a javascript function in your HTML page and call it from flash. If you goto javascripts.com, you can probably find a free background fader script.
-Morg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|