This works Jason: for (var i: int = 0; i < state.dataProvider.length; i++) { if ( val == [EMAIL PROTECTED]) { state.selectedIndex = i; } }
-TH --- In flexcoders@yahoogroups.com, "Jason B" <[EMAIL PROTECTED]> wrote: > > Same error weird its not referencing the actual data? > any other ideas what might be wrong? > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Or, better yet. Since it's an attribute: > > > > [EMAIL PROTECTED] > > > > Talk about brain fatigue. :) > > > > -TH > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" <TimHoff@> wrote: > > > > > > > > > Try: > > > > > > state.dataProvider.state[i].abbrev > > > > > > -TH > > > > > > --- In flexcoders@yahoogroups.com, "Jason B" nospam@ wrote: > > > > > > > > looks like var in this line has the data NY > > > > var val : String = result.DATARESULTS.STATE; > > > > > > > > > > > > > > > > in the loop i see this line showing OBJECT something? weird its like > > > > the state.dataprovider is not working > > > > > > > > state.dataProvider[i].abbrev -<--NOTWORKING showing OBJECT(@.... > > > > > > > > > >