728x90
<?xml version="1.0" ENCODING="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="initData()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var AC:ArrayCollection;
private function initData():void{
AC=new ArrayCollection([
{label:"한국",data:"1"},{label:"러시아",data:"2"},{label:"영국",data:"3"}
]);
}
]]>
</mx:Script>
<mx:Panel title="LIst" width="100%">
<mx:List dataProvider="{AC}" width="100%" editable="true"/>
<mx:ControlBar/>
</mx:Panel>
<mx:Panel title="DataGrid 데이터" width="100%">
<mx:DataGrid dataProvider="{AC}" editable="true" width="100%"/>
</mx:Panel>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="initData()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var AC:ArrayCollection;
private function initData():void{
AC=new ArrayCollection([
{label:"한국",data:"1"},{label:"러시아",data:"2"},{label:"영국",data:"3"}
]);
}
]]>
</mx:Script>
<mx:Panel title="LIst" width="100%">
<mx:List dataProvider="{AC}" width="100%" editable="true"/>
<mx:ControlBar/>
</mx:Panel>
<mx:Panel title="DataGrid 데이터" width="100%">
<mx:DataGrid dataProvider="{AC}" editable="true" width="100%"/>
</mx:Panel>
</mx:Application>
728x90