Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-21-2010, 07:01 PM   #1
carriker
Senior Member
 
Join Date: Jun 2005
Posts: 174
Default Retrieving enumerated component parameter

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:

ActionScript Code:
[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,

--carriker
carriker is offline   Reply With Quote
Old 01-21-2010, 07:22 PM   #2
carriker
Senior Member
 
Join Date: Jun 2005
Posts: 174
Default Figured it out

Nevermind, I figured it out. It's the listIndex property.
carriker is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:18 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.