Hello all,

 

Till now I came across this error lots of time. But I am not able to figure out its cause in the following senario.

 

I get this "out of bounds." error when I do the following thing

 

 for (var i:int=lastSlot; i < slot; i++)
      {
          var image:productthumbnail = thumbcontainer.getChildAt(i);            
       }

 

    

 

but the error got removed when do the following:

 

    var childArr:Array= thumbcontainer.getChildren()
      for (var i:int=lastSlot; i < slot; i++)
      {
          var image:productthumbnail =childArr[i] as productthumbnail
            
       }

 

 

Can anybody tell me whats the reason behind it?

Regards

Ps

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to