please take a look at this thread at the Actionscript.org boards:
http://www.actionscript.net/forums/showthread.php3?s=&threadid=19983
the AS described by pixelwit is exactly what I am looking for, but then for Flash5.
var step = 10;
var oldClip;
function fadeOut(){
this._alpha-=step;
if(this._alpha<=0){
this._alpha = 0;
this._visible = false;
this.onEnterFrame = null;
}
}
function fadeIn(){
this._alpha+=step;
if(this._alpha>=100){
this._alpha = 100;
this.onEnterFrame = null;
}
}
function showClip(newClip){
if (newClip!=oldClip){
var n = newClip;
var o = oldClip;
newClip._visible = true;
n.onEnterFrame = function(){
fadeIn.call(n);
}
o.onEnterFrame = function(){
fadeOut.call(o);
}
oldClip = newClip;
}
}
He included an .fla, but unfortunately both are Mx.
Can anyone tell me how to change this script, so it works for Flash 5+ ???
Thanks