Got a small problem with assigning onRollOver / onRollOut functions to movieclips in a for loop.
Code sample:
Code:
for(i = 0; i < num_squares; i++){
clip = "window"+i;
this.attachMovie("window",clip,100+i);
this[clip].onRollOver = function(){
eval(clip).resize_me(200,200,.2);
}
}
This always makes the last instance number resize when i mouse over any of the clips. (if num_squares = 6, it makes window5 resize)
Another thing i've noticed is if I use
Code:
this[clip].resize_me
it doesnt do anything, not even a mouseOver pointer.
Thanks