悠索

少小离家老大回,乡音无改鬓毛衰。

« 水平滑竿和垂直滑竿控件HSlider&VSlider弹出按钮控件PopUpButton »

进度条控件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>

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Copyright (C) 2008-2010 0451sky.com Inc.,All Rights Reserved.