Hi, I'm trying to use array, and there's some question.
I wrote this
-------------------------------
item = [a, b, c, d, e, f]
for i in [0..5]
item[i].on Events.Click, (item, i)->
print i
---------------------------------
When I click layer 'a', then print a's properties.
But I wanna print "b's properties" instead of a's
How can I change syntex 'print i' ??
1 Comments