| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.imt.intimamedia.helpers
- {
- import mx.collections.ArrayCollection;
- import mx.controls.Alert;
-
- public class ComboBoxHelper
- {
- public function ComboBoxHelper()
- {
- }
-
- public static function findIndex( value: Object, provider : ArrayCollection ) : int
- {
- var index : int = 0;
-
- for each( var object : Object in provider )
- {
- if( object.code == value )
- {
- return index;
- }
-
- index++;
- }
-
- return -1;
- }
-
- public static function findIndexFromLabel( value: Object, provider : ArrayCollection ) : int
- {
- var index : int = 0;
-
- for each( var object : Object in provider )
- {
- if( object.label == value )
- {
- return index;
- }
-
- index++;
- }
-
- return -1;
- }
- }
- }
|