Flash color change?

Out of context: Reply #1

  • Started
  • Last post
  • 5 Responses
  • versa0

    an easy way would be to use a function like this ( writing fast sorry )

    //------------------------------...
    function changeBgd(whichColor){
    var bgdColor = new Array();

    bgdColor[0] = "#555555";
    bgdColor[1] = "#006688";
    bgdColor[2] = "#eeffff";

    document.bgColor = bgdColor[whichColor];
    }
    //------------------------------...

    in your html holder page, and call it from the .swf in question ...then in the past i have just emulated a seamless change between bgd of html page, and bgd of .swf, by setting a full span MC the width and height of my stage, and colored it the same as my html bgd .... then just use a pre-built setRGB based function to change the .swf's bgdMC accordingly at the same that you call the js function

    there should be a Stage.color property to use, shouldn't there?

View thread