Hello,
I was wondering why I cannot find attributes of my movieclips as I use them in arrays.
I got some circle movieclip displayed on stage, named circle1,circle2…
I put them in an array called t1Tab
t1Tab.push(circle1);t1Tab.push(circle2);
then in a function i try to retrieve the width of the movieclip
check(t1Tab[0]);
private function check(collisionCircle){
trace("circle passed"+collisionCircle+" width: "+collisionCircle.width)
}
this retruns
“circle passed [object cercle_mc] width undefined”
If I use the function with the direct movieclip call like check(cicle1) i got the right values.
But not if I use with the movieclips stored in the array. how’s that?