Hiya peeps.
I finaly got the code I needed to change the colour of my background but it clearly needs altering. At the moment it works but I have to click the button twice for the colour to change. Now for once I see that this makes sense because I have onRelease twice!
This code is on the button:
on (release) {
home_btn.onRelease = function() {
var myColor:Color = new Color (this._root.background1);
myColor.setRGB(0xFF8844);}
However i’m unsure how to alter the code correctly…I assume the second onRelease needs to change to something else? I tried just:
home_btn = function() { but am really just guessing.
Anyone that could give me a heads up on this would be very much appreciated.
Thanks