Groups | Blog | Home
all groups > flash actionscript > october 2004 >

flash actionscript : onClipEvent somerhow not working under 7 ??


Oleynik Denis
10/9/2004 10:44:26 PM
Hi,
Your mistake is on your script :
(Xsquare = this._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/4;
this._x = xsquare+xmove;)
you see, the first time you wrote "Xsquare & Xmove" in such way and the next
time in such (xsquare+xmove), the mistake is in the first letters!!! Correct it
in the second time to upper case and it will work!!!
vinZ
10/9/2004 11:57:34 PM
Hi there,

I have some little code on a MC
that tweens this MC nice on a x-line and also
ease it nice, under the 6player that is.
Under 7 it only does the alfa and not the easing.
AnyOne knows why the code does not do the job
under 7??

cheers,

vincento


//======================
onClipEvent (load) {
a = 2;
this._alpha = 2;
this.Xpos = 23;
}
onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/4;
this._x = xsquare+xmove;
updateAfterEvent(enterFrame);
if (a<=100) {
this._alpha = a;
a = a+5;
}
}
//======================

vinZ
10/10/2004 1:22:00 AM
THANKS !!

overloeked that completly.

cheers,
vincento

[quoted text, click to view]

Oleynik Denis
10/11/2004 2:23:01 PM
AddThis Social Bookmark Button