Saving a variable.
Hello, newbie, I have a problem that I can't solve. I have 4 movieClips that I can move using the mouse: clip1, clip 2.... When clicking on a clip, I want to save a myVar variable which gives me a numerical value of the clip I click on and based on its position in the recip variable. For example, clicking on clip0, myVar = 0, clicking on clip2, the myVar = 2... Many thanks to anyone who can help me.
Var myVar ;
var recip = [this.clip0, this.clip1, this.clip2, this.clip3]
var objet = [];
for (var i = 0; i < recip.length; i++) {
objet[i] = [recip[i].x, recip[i].y];
recip[i].addEventListener("mousedown", startMouvRecip.bind(app))
recip[i].addEventListener("pressmove", mouvRecip.bind(app));
recip[i].addEventListener("pressup", stopmouvRecip.bind(app));
};
