I have a stage sized mc named mcBg in the bottom layer of an interface.
I have a button that slides in a new frame for content. in the first frame of that slide content I have the following code:
function change_mcBg_color(){
colorA = new Color(mcBg);
colorA.setRGB(random(0xFFFFFF));
}
I got this from a tutorial, but I think I did it wrong. I am just trying to chage the mc's color. Please some one help - I am ready to commit harey carey here lol
Okay, the reason it isn't working is because there nothing for the color to change on. If you draw out a rectangle the size of the stage in the mcBg clip then the code will work
Umm, I couldn't find where this function was at.So all I did was name the MC which it wasn't called mcBg except for in the library. I also drew the box inside the mc.
Well if you click inside of each movieclip, there on the same frame as its in the internet cafe one. Then if click on the button and check the code for, where it moves the other buttons down. I put the function in there also so that it calls the function, making it do the command.
If you want to change the randomness. take out the random part on each function and change it to a proper 0xFFFFFF number. That way you will always get that number.
No prolbem. If you go inside of the internet cafe and select the frame with the function. It originally looked like this:
function change_mcBg_color(){
colorA = new Color(_parent._parent.mcBg);
colorA.setRGB(random(0xFFFFFF));
}
now change it to this:
function change_mcBg_color(){
colorA = new Color(_parent._parent.mcBg);
colorA.setRGB(0xFF0000);
}
This will make the background red