I saw this awesome effect when you press “enter” on MONO*Crafts site that I tried to recreate it!
Unfortunately I’m no actionscript guru so my code is not perfect and doesn’t want to work! :*( Perhaps someone can take a look and help me recreate the effect!
My code:
// settings
bar._xscale = 0;
bar._yscale = 0;
bar._alpha = 0;
xscaleto = 100;
xopacity = 100;
yscaleto = 100;
yopacity = 15;
// the functions xscale and yscale
xscale = function () {
if (this._xscale != xscaleto) {
this._xscale -= (this._xscale-xscaleto)/7.5;
this._alpha -= (this._alpha-xopacity)/7.5;
} else {
this.onEnterFrame = yscale;
}
};
yscale = function () {
if (this._yscale != yscaleto) {
this._yscale -= (this._yscale-yscaleto)/7.5;
this._alpha -= (this._alpha-yopacity)/7.5;
} else {
this.onEnterFrame = null;
}
};
// first function to execute is xscale
bar.onEnterFrame = xscale;
:rambo: