Multiple Objects
post and replies
Return to the Multiple Objects thread
Login to post to this thread
Multiple Objects onclick
|
Apostolos Michaloudis
28 Posts
|
Hello!
I create a list of texts in drawing panel, each of them has defferent position in y axis, by using a matrix var y[i].
Is it possible, when I click on a text to return the i number of this particular text, without a for loop?
Best regards!
|
Re: Multiple Objects onclick -
|
Francisco Esquembre
237 Posts
|
Sure!
As with any set of drawables, the ElementInteracted gives you the integer index of the element you interacted with.
See example attached. (Notice that texts' hot point is on top its first character...)
Paco
Attached File: ejss_src_SetInteractionTest.zip
|
|