can anyone please tell me, what’s the best way to get a variable when a button or movie clip is clicked that corresponds to a part of the name of the clip?
let me explain…
say i have four movie clips, clip01, clip02, clip03 and clip04.
for(i=1; i<5; i++) {
_root["clip"+i].onRelease = function() {
// set variable 'clipClicked' to 1, 2, 3 or 4
}
}
thanks in advance…
||| O ^ | + O ¬