<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp();">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
private var obj:Array = new Array();
private function initApp():void{
//Create the Object
obj.push("1 won sa ma");
obj.push("2 won sa ma");
obj.push("3 won sa ma");
}
public function dumpObj():void{
trace("called");
for(var p:String in obj){
ta1.text+=p+":"+obj[p]+"\n";
}
}
]]>
</mx:Script>
<mx:TextArea id="ta1" width="400" height="200" text="zz"/>
<mx:Button label="Dump Object" click="dumpObj();" x="299" y="208"/>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp();">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
private var obj:Array = new Array();
private function initApp():void{
//Create the Object
obj.push("1 won sa ma");
obj.push("2 won sa ma");
obj.push("3 won sa ma");
}
public function dumpObj():void{
trace("called");
for(var p:String in obj){
ta1.text+=p+":"+obj[p]+"\n";
}
}
]]>
</mx:Script>
<mx:TextArea id="ta1" width="400" height="200" text="zz"/>
<mx:Button label="Dump Object" click="dumpObj();" x="299" y="208"/>
</mx:Application>
'etc > old' 카테고리의 다른 글
시바토라 - ED SONG (0) | 2008.09.11 |
---|---|
My Sql 기본적인 명령어 (0) | 2008.09.08 |
onfocus 등의 호출시점 => 매우 중요함. (0) | 2008.07.05 |
자바스크립트를 이용하여 주소값(get방식) 분석하기 (0) | 2008.06.16 |
파싱이후 숫자 유효성 검증하는거 예시 (0) | 2008.06.11 |