AS template for flex(flex AS模版)

////////////////////////////////////////////////////////////////////////////////
//  Copyright (C) 2007 dzq http://www.duzengqiang.com
////////////////////////////////////////////////////////////////////////////////

package
{
   
import mx.events.MoveEvent;

//--------------------------------------
//  Events
//--------------------------------------
/**
 *  Dispatched when the <code>data</code> property changes.
 */
/* [Event(name="dataChange", type="mx.events.FlexEvent")] */

//--------------------------------------
//  Styles
//--------------------------------------
/**
 *  Text color of the label as the user presses it.
 * 
 *  @default 0x000000
 */
 
 
/* [Style(name="textSelectedColor", type="uint", format="Color", inherit="yes")] */
 //--------------------------------------
//  Skins
//--------------------------------------

/**
 *  Name of the class to use as the skin for the background and border
 *  when the button is not selected and the mouse is not over the control.
 * 
 *  @default "mx.skins.halo.ButtonSkin"
 */
/* [Style(name="upSkin", type="Class", inherit="no")] */


//--------------------------------------
//  Other metadata
//--------------------------------------


/* [AccessibilityClass(implementation="mx.accessibility.ButtonAccImpl")]

[DefaultBindingProperty(source="selected", destination="label")]

[DefaultTriggerEvent("click")]

[IconFile("Button.png")] */

/**
 *  The Button control is a commonly used rectangular button.
 *  Button controls look like they can be pressed.
 *  They can have a text label, an icon, or both on their face.
 *  @includeExample examples/ButtonExample.mxml
 */
 
public class template extends *
{   
    //--------------------------------------------------------------------------
    //
    //  Class initialization
    //
    //--------------------------------------------------------------------------
   
    //--------------------------------------------------------------------------
    //
    //  Class resources
    //
    //--------------------------------------------------------------------------
   
    //--------------------------------------------------------------------------
    //
    //  Class constants
    //
    //--------------------------------------------------------------------------

     //--------------------------------------------------------------------------
    //
    //  Class variables
    //
    //--------------------------------------------------------------------------

    //--------------------------------------------------------------------------
    //
    //  Class properties
    //
    //--------------------------------------------------------------------------
   
    //--------------------------------------------------------------------------
    //
    //  Class methods
    //
    //--------------------------------------------------------------------------
   
    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

    /**
     *  Constructor.
     */
    public function template():void{
        super();
    }
    //--------------------------------------------------------------------------
    //
    //  Variables
    //
    //--------------------------------------------------------------------------
    /**
     *  @private
     */
    
    //--------------------------------------------------------------------------
    //
    //  Overridden properties
    //
    //--------------------------------------------------------------------------
    /**
     *  @private
     */
    
    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------
    /**
     *  @private
     */
    //----------------------------------
    //  data
    //----------------------------------

    /**
     *  @private
     *  Storage for the data property;
     */
   /*  private var _data:Object;

    [Bindable("dataChange")]
    [Inspectable(environment="none")] */

    /**
     *  The <code>data</code> property lets you pass a value
     */
   /*  public function get data():Object
    {
        if (!_data)
            _data = {};

        return _data;
    } */

    /**
     *  @private
     */
   /*  public function set data(value:Object):void
    {
      

        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
    }
      */
    //--------------------------------------------------------------------------
    //
    //  Overridden methods
    //
    //--------------------------------------------------------------------------
   
    /**
     *  @private
     */
    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
   
    /**
     *  @private
     */
    
    //--------------------------------------------------------------------------
    //
    //  Overridden event handlers: NavBar
    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     */
    
    
    //--------------------------------------------------------------------------
    //
    //  Event handlers
    //
    //--------------------------------------------------------------------------
   
    /**
     *  @private
     */
    
}
}

下载

Share