Help (FlashMX)

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 :slight_smile:

Yes, this code does indeed work; however i’m not sure if it works the way you want it to. The movieclip expands and shrinks everytime you click on the movieclip. Can you please specify exactly what you want to do?

I am assuming that you want the movie clip to only expand instead of expand and then compress on the next clip, but then again I have a feeling I am still wrong with what you need. Just in case I took out the if statement and made it so that it could only expand.

onClipEvent (load) {
speed = 10;
x = 100;
y = 100;
}
onClipEvent (mouseUp) {
x += 300;
y += 300;
}
onClipEvent (enterFrame) {
_xscale += (x-_xscale)/speed;
_yscale += (y-_yscale)/speed;
}

I want to make the code work only when i click on the photo.