zoukankan      html  css  js  c++  java
  • ButtonBar 的使用

    代码
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        
    <mx:Script>
            
    <![CDATA[
                
    import mx.events.ItemClickEvent;
                
    import mx.controls.Alert;
                
                [Bindable]
                [Embed(
    "png/Calendar_scheduleHS.png")]
                
    private var icon1:Class;
                
                
    private function itemClick(evt:ItemClickEvent):void{
                    Alert.show(evt.label.toString());                
                }
            ]]
    >
        
    </mx:Script>
        
    <mx:Array id="_Bar">
            
    <mx:Object label="按钮1" icon="{icon1}"/>
            
    <mx:Object label="按钮2"/>
            
    <mx:Object label="按钮3"/>
        
    </mx:Array>
        
    <mx:ButtonBar x="61" y="82" dataProvider="{_Bar}" itemClick="itemClick(event);">
        
    </mx:ButtonBar>
        
    </mx:Application>
  • 相关阅读:
    owlsuddimatchmaker安装
    类集
    jsp基本语法
    心得思路记录下
    nyoj517 最小公倍数
    poj1250 Tanning Salon
    poj1686 Lazy Math Instructor
    poj3250 Bad Hair Day
    poj1047 Round and Round We Go
    poj2359 Questions
  • 原文地址:https://www.cnblogs.com/wjhx/p/1672606.html
Copyright © 2011-2022 走看看