here is the site
http://jfreeden.com/test/main2.html
here is the actionscript
setProperty(“obj1”, _alpha, “0”);
setProperty(“obj2”, _alpha, “0”);
setProperty(“obj3”, _alpha, “0”);
setProperty(“obj4”, _alpha, “0”);
setProperty(“obj5”, _alpha, “0”);
obj1.loadMovie(“background1.swf”);
obj2.loadMovie(“background2.swf”);
obj3.loadMovie(“background3.swf”);
obj4.loadMovie(“background4.swf”);
obj5.loadMovie(“background5.swf”);
// targetAlpha contains the value of _alpha you want the clip to fade towards
function doFade() {
this._alpha += (this.targetAlpha-this._alpha)/4;
if (Math.round(this._alpha) == this.targetAlpha) {
delete this.onEnterFrame;
}
}
// get a clip named myClip to fade out
obj2.targetAlpha = 0;
obj2.onEnterFrame = doFade;
obj3.targetAlpha = 0;
obj3.onEnterFrame = doFade;
obj4.targetAlpha = 0;
obj4.onEnterFrame = doFade;
obj5.targetAlpha = 0;
obj5.onEnterFrame = doFade;
// and get another clip named myOtherClip to fade in
obj1.targetAlpha = 80;
obj1.onEnterFrame = doFade;
what will make the transition smoother, i already cranked down the quality to a low 20… the background files are 20kb. I figured if i lowered the target alpha, it would go quicker/smoother but it didnt help, i also messed with the division factor within (this.targetAlpha-this._alpha)/4; the lower the # the choppier the transition, the higher the # the longer it takes… frame rate is at 30. Thanks all!