I’m working on a site (http://www.paradiselimos.net/atoma) where I’m using an elastic effect on a window that will display the conent. Here is the code I have so far:
Code for elastic is on a frame:
rate = .3;
decay = .4;
window.goal = 50;
window._xscale = window._yscale = 0;
window.onEnterFrame = function() {
this.accel = (this.goal-this._xscale)*rate;
this.veloc += this.accel;
this.veloc *= decay;
this._xscale = this._yscale += this.veloc;
}
And on the menu:
on (release) {
_root.window.goal = 350;
}
Now all of this code works fantastic when I publish the movie for the Flash 6 Player, but when I change it to the latest Flash 7 Player it doesn’t work. Can anyone tell me what is wrong and what I can do to fix it?