APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Multiple Objects

Return to the EJS Modeling forum
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!


Current Replies - View all
Re: Multiple Objects oncl...   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book