Is it possible to change the background color of a flash application using actionscript? The thing is, I have made a game with quiet a lot of menus/submenus, and when you enter a specific cheat-code, it changes the cursor to yellow.
So, is it possible to change the default background color using actionscript?
Thanks in advance!
best practice would be to create a small MovieClip on the Stage,
something like 10x10
and set its x and y = 0;
and give it an instance name of bg_mc
then you can script it to change the colour to the width and heigh of the stage.
firt create a function to set the bg_mc colour, in this case its black.
function bgChange(toThisColour) {
var colour = new Color(bg_mc);
colour.setRGB(toThisColour);
bg_mc._width = Stage.width;
bg_mc._height = Stage.height;
}
bgChange(0x000000);
^I understand that that works, but what Im interested in is changing the Default color of the stage, and not use a movie clip. Im pretty shure there's a variable for it, right?