I have the component Hadlab Newsflash on my stage.
I have a button that, on rollover, changes the color of the component.
When the button is clicked, the component fades out (tweenning) and the movie goes on.
The problem is that the constructor keeps telling the component to be #FF0000(red) and the fade out tweenning doesnt work anymore because the mouse is on the button.
Here is the code:
// cria a funcao "onRollOver" para o btnEnter
btnEnter.onRollOver = function() {
var rollOvercolor = new Color(_root.newsflash);
rollOvercolor.setRGB(0xFF0000);
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start(0, 1);
}
// cria funcao "onRollOut" para o btnEnter
btnEnter.onRollOut = function() {
var rollOutcolor = new Color(_root.newsflash);
rollOutcolor.setRGB(0x999999);
}
// cria a funcao "onRelease" para o btnEnter
btnEnter.onRelease = function() {
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start(0, 3);
gotoAndPlay("continue");
}
Does anyone have an idea how to disable the constructor new Color when the Enter button is clicked?
Thanks