清风的blog 优然探索

进度条控件ProgressBar

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>

       <![CDATA[

           public function initImage():void {

              image1.load('happy.jpg');

           }

       ]]>

    </mx:Script>

    <mx:VBox id="vbox0">

       <mx:Canvas>

           <!--加载进程条到图像上-->

           <mx:ProgressBar width="500" source="image1"/>

       </mx:Canvas>

       <!--单击按钮执行初始化图像-->

       <mx:Button id="myButton" label="Show" click="initImage();"/>

       <!--显示的图片-->

       <mx:Image id="image1" autoLoad="false" visible="true" width="500"/>

    </mx:VBox>

</mx:Application>

2010年2月19日 | 发布:admin | 分类:Flex | 评论:0

发表留言: