InterviewSolution
Saved Bookmarks
| 1. |
How Do You Use A Repeater In Actionscript? |
|
Answer» Answer : <mx:Application> <mx:Script> <![CDATA[ [Bindable] public var myArray:Array[ 1,2,3,4]; ]]> </mx: Script> <mx:Panel tiile=”Repeater: EMULATING a for loop” paddingBottom=” 10” paddingLeft=” 10” paddingRight=” 10” PADDINGTOP=” 10”> <mx:Repeater id=”myRep” dataProvider=” {myArray }“> <mx:Label id=”myLabel”text=”This is loop# {myRep.currentIndex}”/> </mx: Repeater> </mx:Panel> </mx: Application> |
|