hi all
====
am repeating elements of array collection in button and textinput controls
all the elemnts are there if i press enter button that result will display
in other control >>>>>>>>>>>>>>>>
here the code
*********************************************************************************************am
waiting for replay tahnks laks

<?xml version="1.0"?>

<!-- repeater\InstanceIndicesProp.mxml -->

<s:Application

xmlns:fx="http://ns.adobe.com/mxml/2009";

xmlns:mx="library://ns.adobe.com/flex/mx"

xmlns:s="library://ns.adobe.com/flex/spark">

<s:layout>

<s:VerticalLayout/>

</s:layout>

<fx:Script>

<![CDATA[

*import* mx.controls.Alert;

[*Bindable*]

*public* *var* myArray:Array=[1,2,3,4,5,6,7,8];

*public* *function* clickHandler(event:MouseEvent):*void
*

{

*var* capture:String ;

capture= myText.text;

Alert.show(capture);

}

]]>

</fx:Script>

<fx:Declarations>

<mx:ArrayCollection id="myAC" source="{myArray}"/>

</fx:Declarations>

<mx:Panel title="repeaters using chcek boxes" width="75%" height="75%"

paddingTop="0" paddingLeft="10" paddingRight="10" paddingBottom="0"
cornerRadius="20" color="blue">

<mx:VBox >

<mx:Repeater id="list" dataProvider="{myAC}" count="8" startingIndex="0">

<mx:HBox>

<mx:Button label="click to get elements "

click="myText[event.target.instanceIndices].text=
event.target.instanceIndices.toString();" />

<mx:TextInput id="myText" />

</mx:HBox>

</mx:Repeater>

<mx:Button id ="bi" label="enter" click="clickHandler(event)"/>

</mx:VBox >

</mx:Panel>

</s:Application>

-- 
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.

Reply via email to