header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Shridhar Kulkarni
Points:0
Posts:0

8/29/2011 5:19:08 AM

Title: getting index value in item renederer


Hi
I have created one itemRenderer for which i provide a arraycollection as a data provider.
my renderer looks like

<CommonTools:ShowPageTagList itemRenderer="com.mediawide.adbuilder.views.Renderers.ShowPageRenderer" dataProvider="{anyArrayCollection as ArrayCollection}"/>

now I know , using 'data' property we can get element from arraycollection. for eg 'data.name' gives name in particular object.
But I want to take 'index' of that object in the provided arrayCollection.

Please its urgent

Please Help

Thanks in advance



1
Ronald
Points: 430
Posts:0
9/3/2011 10:07:52 AM



i think you need to run loop to search the name in the array collection and find the index number

2
Gourav_flex
Points: 150
Posts:0
9/14/2011 1:01:32 AM



use Listindex property


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions