Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex Repeater in flex

Have Programming Question? Ask it here!
 
 
 


bikrantsingh
Repeater in flex
1 Answer(s)      3 years and 11 months ago
Posted in : Flex


Hi......

How do you use a repeater?
please give me an example for that so i can clearly understand.

Thanks

Advertisement
View Answers

October 16, 2010 at 4:39 PM


<p>Ans:<br>
Here is the example in which you can see how we can use the repeater in your
application<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;<br>;
xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;<br>;
xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;<br>;
&lt;fx:Declarations&gt;<br>
&lt;s:ArrayList id=&quot;arrayList&quot;<br>
source=&quot;[HTML,Java,CSS]&quot;/&gt;<br>
&lt;/fx:Declarations&gt;<br>
&lt;s:VGroup horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot;&gt;<br>
&lt;mx:HBox&gt;<br>
&lt;mx:Repeater id=&quot;repeater&quot; dataProvider=&quot;{arrayList}&quot;&gt;<br>
&lt;s:Button left=&quot;20&quot; top=&quot;335&quot; label=&quot;{repeater.currentItem}&quot; /&gt;<br>
&lt;/mx:Repeater&gt;<br>
&lt;/mx:HBox&gt;<br>
&lt;/s:VGroup&gt;<br>
&lt;/s:Application&gt;</p>


Related Tutorials/Questions & Answers:
 

 

 

DMCA.com