-
Retrieving Index positions of an Array objects
I have an Array full with String objects. That Array is filled form an XML file.
I need to retrieve their numerical index (0,1,2,3....) and compare that to a variable
that is set to CHANGE event.target.selectedIndices of a List component. So,
basically that variable is an Array with array component positions (0,1,2,3....etc.)
Thnx.
-
trace("AKA: Biro Barna");
PHP Code:
var list:Array = ["one", "two", "three", "four"]; trace(this.list.indexOf("three"));
Last edited by fx.barrett; 10-18-2008 at 06:56 PM.
| Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro | WebLog: http://blog.wisebisoft.com/ |
| Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
| Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/ | By perseverance the snail reached the ark. |
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|