I have the attached bit of code which fades an mc out smoothly using
actionscript. Works a treat, but how do I get the mc to fade in - i.e. the
reverse of this code?
gryllsie
mcname.onEnterFrame = function() {
mcname._alpha -= 5;
if (mcname._alpha <= 0) {
mcname._visible = false;
delete.mcname.onEnterFrame;
}
};
kglad - 30 Mar 2007 16:08 GMT
mcname.onEnterFrame = function() {
mcname._alpha += 5;
mcname._visible = true; // or set this elsewhere.
if (mcname._alpha >= 100) {
delete this.onEnterFrame; // correct your other delete statement.
}
};
gryllsie - 30 Mar 2007 16:32 GMT
kglad - 31 Mar 2007 01:21 GMT