특별한딸기이야기
진행바 본문
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function setProgress() : void
{
var i : int;
i = int(txtValue.text);
i += 10;
if(i > 100)
{
i = 0;
}
prgClick.setProgress(i, 100);
txtValue.text = String(i);
}
]]>
</mx:Script>
<mx:Button x="156" y="173" label="click" fontSize="12" id="btnClick" click="setProgress()" />
<mx:ProgressBar x="104" y="132" width="172" id="prgClick" mode="manual"/>
<mx:Text x="128" y="106" text="0" width="114" id="txtValue" />
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function setProgress() : void
{
var i : int;
i = int(txtValue.text);
i += 10;
if(i > 100)
{
i = 0;
}
prgClick.setProgress(i, 100);
txtValue.text = String(i);
}
]]>
</mx:Script>
<mx:Button x="156" y="173" label="click" fontSize="12" id="btnClick" click="setProgress()" />
<mx:ProgressBar x="104" y="132" width="172" id="prgClick" mode="manual"/>
<mx:Text x="128" y="106" text="0" width="114" id="txtValue" />
</mx:Application>