Bolto_Crank
July 1st, 2003, 02:15 PM
I'v got a photo in a movie clip. I got this code in the actionscript pane of the movie clip:
onClipEvent (load) {
speed = 10;
x = 100;
y = 100;
regul = "0";
}
onClipEvent (mouseUp) {
if (regul == "0") {
x = 300;
y = 310;
regul = "1";
} else if (regul == "1") {
x = 100;
y = 100;
regul = "0";
}
}
onClipEvent (enterFrame) {
_xscale += (x-_xscale)/speed;
_yscale += (y-_yscale)/speed;
}
I want to make this code to work only when i click on the movie clip.
Sorry but i'm portuguese, my english is very poor
thanx :)
onClipEvent (load) {
speed = 10;
x = 100;
y = 100;
regul = "0";
}
onClipEvent (mouseUp) {
if (regul == "0") {
x = 300;
y = 310;
regul = "1";
} else if (regul == "1") {
x = 100;
y = 100;
regul = "0";
}
}
onClipEvent (enterFrame) {
_xscale += (x-_xscale)/speed;
_yscale += (y-_yscale)/speed;
}
I want to make this code to work only when i click on the movie clip.
Sorry but i'm portuguese, my english is very poor
thanx :)