悠索

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

« 警告控件Alert音像控件VideoDisplay »

选色器控件ColorPicker

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

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

    <mx:Script>

       <![CDATA[

           //Import the event classes.

           import flash.events.Event;

 

           public function openEvt(event:Event):void {

              forChange.text="打开";

           }

           public function changeEvt(event:Event):void {

              forChange.text="所选项目: " +

              event.target.selectedItem + "所选指针: " +

              event.target.selectedIndex;

           }

       ]]>

    </mx:Script>

   <mx:Panel title="调色盘控件示例" height="75%" width="75%"

        paddingTop="10" paddingBottom="10"

        paddingLeft="10" paddingRight="10">

      

       <mx:TextArea id="forChange" width="150"/>

       <mx:ColorPicker id="cp" open="openEvt(event);" change="changeEvt(event);"/>

    </mx:Panel>

 

</mx:Application>

  • 相关文章:

发表评论:

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

日历

最新评论及回复

最近发表

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