Because 1 will always be less than attendeelist.length so i just keeps going
up.

 

Regards,

 

Keith Reinfeld
Home Page:  <http://keithreinfeld.home.comcast.net/>
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of kpjj31
Sent: Monday, September 28, 2009 9:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Actionscript error : RangeError: Index '2' specified
is out of bounds.

 

  

Would anybody be able to tell me why I am getting this  actionscript error
when looping through an arraycollection.

attendeelist = new ArrayCollection(event.result.ATTENDEELIST  as Array);
length is 3

setting selectedindex based on profileid match

var index:int =-1;
for (var i:int = 0; 1 < attendeelist.length; i++)
{
 if (attendeelist.getItemAt(i).PROFILEID == setprofileid)
   {
   index = i;
   break;
   }
   }



<<image001.jpg>>

<<image002.jpg>>

Reply via email to