Answered
AS animated _alpha on a button problem
Hi there,
I'm using the following code to animate the _alpha value of a button up and down:
_root.fadeIn = function(){
nav.tekst._alpha += 2;
if (nav.tekst._alpha >= 100) {
delete this.onEnterFrame;
this.onEnterFrame = _root.fadeOut;
}
}
_root.fadeOut = function(){
nav.tekst._alpha -= 1;
if (nav.tekst._alpha <= 50) {
delete this.onEnterFrame;
this.onEnterFrame = _root.fadeIn;
}
}
this.onEnterFrame = _root.fadeOut;
The button contains only one textfield. It's static text, so there shouldn't be any embeding issues, right? The opacity of the button seems to "jump" somewhere between the values 75 and 80. Almost as though it increments (or decreases) with 10 instead of 1 for one frame, and then goes on normally. Tracing the _alpha-value didn't reveal any such behaviour.
Any ideas on what it could be, or how to possibly work arround it?
I'd rather not animate the text in the button or something, because the button should only blink under certain conditions.
Thanks in advance!
Yours,
Andra
