[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-13 Thread bhaq1972
sorry i didn't respond to your reply..slipped thru. continuing from Alex, and having a closer look at your original post ..flexcoders is so busy and sometimes i just look at the title and give an answer...i'll be a good boy and read the question properly next time. what you actually

[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-13 Thread erinwyher
Bod, thank you thank you thank you!!! This works beautifully. And just in time for our Beta test today. :) -Erin --- In [EMAIL PROTECTED], bhaq1972 [EMAIL PROTECTED] wrote: sorry i didn't respond to your reply..slipped thru. continuing from Alex, and having a closer look at your original

[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-12 Thread erinwyher
Thanks for the suggestion. My new error is: value is not a function. This comes up on this new line: IList(myTiles.dataProvider).getItemAt(1).testFunction(); -Erin --- In [EMAIL PROTECTED], craig.drabik [EMAIL PROTECTED] wrote: Try using an ArrayCollection for your data provider instead of a

RE: [flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-12 Thread Alex Harui
Erin, It looks like your array: var arrTest:Array = [1,2,3,4]; just contains numbers. IList(myTiles.dataProvider).getItemAt(1) should return 2; 2 is just a number so you it doesn't have a testFunction Did you intend to pass 2 into testFunction? That would be:

[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-11 Thread erinwyher
Thanks for the suggestion, but it doesn't work :(. Do you need the latest version of Flex 2 for that to work? I didn't install the latest upgrade (2.1 I believe). When I tried it, I got the following error. TypeError: Error #1006: value is not a function. at test/clickedList() at

[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-11 Thread craig.drabik
Try using an ArrayCollection for your data provider instead of a simple array. --- In flexcoders@yahoogroups.com, erinwyher [EMAIL PROTECTED] wrote: Thanks for the suggestion, but it doesn't work :(. Do you need the latest version of Flex 2 for that to work? I didn't install the latest

[flexcoders] Re: Tilelist in Flex 2 - what to use instead of getItemAt()?

2007-04-10 Thread bhaq1972
the getItemAt() function is available but not like the flex 1.5 way. you can do the following import mx.collections.IList; public function clickedList():void { //myTiles.getItemAt(1).testFunction(); IList(myTiles.dataProvider).getItemAt(1).testFunction(); etc --- In