This is my first ever question that I have posted to a forum. I normally spend hours battling with the simpliest AS and eventually work it out, but in this case I’ve decided to seek help.
Anyway, I’ve trying to run the following AS applied to a button:
on (rollOver) {
i = getProperty(this.button01, _alpha);
while (i<100) {
if (i>100) {
break;
}
setProperty(this.button01, _alpha, i++);
}
}
on (rollOut) {
i = getProperty(this.button01, _alpha);
while (i<=100) {
if (i<=50) {
break;
}
setProperty(this.button01, _alpha, i–);
}
}
The action seems to work, however the increment is instant and I want to acheive a smoother transition. Any help appreciate.
Thanks
Simon