View Full Version : Retrieving enumerated component parameter

01-21-2010, 07:01 PM
I'm pretty new to using jsfl but here is what I'm trying to accomplish. I cycle through the components on the current timeline, look at some parameters and depending on their value change some other parameters. Everything works except for parameters with enumerations. I can see the array of enumerated options, but I can't figure out how to determine which option is currently selected.

So for example I have a component with the following inspectable tag:

[Inspectable (name="sortOrder", enumeration="left to right,top to bottom", defaultValue="left to right")]

So when I get to the parameter with a name of "sortOrder" the "value" of that parameter is an array of 2 objects (one for each enumeration). Each object has a "value" property that represents the string value of that enumeration, but again I don't know which one is selected.

I'm guessing that there is some flag on the selected enumeration object, but I don't know what it's called. Any help would be appreciated.

Thanks in advance,


01-21-2010, 07:22 PM
Nevermind, I figured it out. It's the listIndex property.