A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Need help changing Background colors from within flash

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    3

    Question

    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

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    597

    Post

    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.

  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Question

    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.

  4. #4
    Junior Member
    Join Date
    Feb 2000
    Posts
    18

    Talking

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center