Hi,
I´ve made a Mc with an elastic effect but when I duplicated it, it doesn´t do nothing, maybe a problem with the prototype effect but I can´t understand. Please give me a soluction or an alternative. Thanks.
Printable View
Hi,
I´ve made a Mc with an elastic effect but when I duplicated it, it doesn´t do nothing, maybe a problem with the prototype effect but I can´t understand. Please give me a soluction or an alternative. Thanks.
make sure you didnt duplicate instance names as well
Even if I duplicate every mc, button and graphic and give new inst names it doesn´t move like the other mc. I don´t get it.
hi there, can u tell me how to make those plastic effects..? is it possible to make it with fonts also...?? can i look at the fla.
thnx
You can try but my problem is when I duplicate de button. It does nothing, it stands still. If You solve the problem please tell me.
You can try but my problem is when I duplicate de button. It does nothing, it stands still. If You solve the problem please tell me.
hi, y i cant open ur fla..? is this mx2004 version..?
if yes then pls make it in previous version of flash i.e flash mx
Yes, it´s a 2004 version. I deleted mx version when i bought de mx2004 but try to open this version (saved as flash 6 in mx2004)
hey again same problem. i guess this is also a 2004 version.
Ok, I don´t have the mx anymore so let´s try this: download de swf and try to find what may be the problem. The programing is this:
------------------on the mc------------------------
onClipEvent (load) {
x0 = this._x;
y0 = this._y;
}
onClipEvent (enterFrame) {
if (pressing) {
startDrag (this) ;
xp = this._x - x0 ;
yp = this._y - y0 ;
x0 = this._x ;
y0 = this._y ;
if (x0 >= 190 || y0>=200 || x0<=90 || y0<=100){
pressing = 0;
stopDrag();
this.x = -this._x+140;
this.y = -this._y+150;
this.xp = this.xp*0.9+this.x*0.1;
this.yp = this.yp*0.9+this.y*0.1;
this._x += this.xp;
this._y += this.yp;
}
}
else {
stopDrag () ;
this.x = -this._x+140;
this.y = -this._y+150;
this.xp = this.xp*0.9+this.x*0.1;
this.yp = this.yp*0.9+this.y*0.1;
this._x += this.xp;
this._y += this.yp;
}
}
-------------on the button inside de mc---------------
on (rollOver) {
pressing = 1;
}
on (release) {
pressing = 0;
}
on(press){
getURL("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash")
}
Thanks