I have some movieclips on stage each with an instance name like this: 101, 102,103,104… etc
When I click one of them, it’s istance name is added in an array:
myArray.push(event.currentTarget.name);
I’ve got a button on stage too and I want when this button is clicked to change the Y of all the selected movieclips:
function mybutton_btn(event:MouseEvent):void
{
this[myArray*].y = this[myArray*].y+50;
}
But this code is wrong.
Output error is:
TypeError: Error #1010: A term is undefined and has no properties.
at tich1_fla::MainTimeline/mybutton_btn()
How can I achieve what I want??