Hi Friends, My problem is that i m using repeater to show two dimension array value in text area with loops.i want to change color of text in every "even" text field.Mean 2 ,4,6 etc.if am using 1 more repeater for color.every value of array show 3 time???
<?xml version="1.0"?> <!-- repeater\myComponents\CustButton.mxml --> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="FillArray();"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var masterTaskListCollection:ArrayCollection = new ArrayCollection(); [Bindable] //public var colorArray:Array=[0xFF0000,0x00FF00]; public function FillArray():void{ var masterTaskList:Array = new Array(); masterTaskList[0] = ["wash dishes", "take out trash"]; masterTaskList[1] = ["wash dishes", "pay bills"]; masterTaskList[2] = ["wash dishes", "dentist"]; masterTaskList[3] = ["wash dishes", "wash dog"]; masterTaskList[4] = ["wash dishes", "clean house"]; masterTaskList[5] = ["wash dishes", "wash car"]; masterTaskList[6] = ["mow lawn", "fix chair"]; masterTaskListCollection.source = masterTaskList; } ]]> </mx:Script> <mx:Repeater dataProvider="{masterTaskListCollection}" id="outerLoop" > <mx:Repeater dataProvider="{outerLoop.currentItem}" id="innerLoop"> <mx:TextArea text="{innerLoop.currentItem}" buttonMode="true" fontSize="16" x="{(75*(innerLoop.currentIndex))}" y="{(75*(outerLoop.currentIndex))}" width="150" height="20" backgroundAlpha="0" borderThickness="0"></mx:TextArea> </mx:Repeater> </mx:Repeater> </mx:VBox> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

