Packagelunas.display.button
Classpublic class AquaButton
InheritanceAquaButton Inheritance AbstractButton Inheritance AbstractComponent Inheritance CoreSprite Inheritance flash.display.Sprite

This AquaButton class defines a button component with a aqua effect inside.



Public Properties
 PropertyDefined by
  background : Shape
The background of the button.
AquaButton
 Inheritedborder : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
AbstractComponent
 Inheritedbubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
AbstractComponent
 Inheritedbuilder : IBuilder
Indicates the IBuilder reference of this instance.
AbstractComponent
 InheritedbuttonMode : Boolean
Specifies whether this object receives mouse messages.
AbstractButton
 InheritedcomponentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
AbstractComponent
 Inheriteddata : *
Indicates the data value object of the component.
AbstractButton
 Inheritedenabled : Boolean
Indicates the enabled state of the component.
AbstractComponent
 Inheritedgroup : Boolean
Indicates with a boolean if this object is grouped.
AbstractComponent
 InheritedgroupName : String
Indicates the name of the group of this object.
AbstractComponent
 Inheritedh : Number
(read-only) Indicates the virtual height value of this component.
AbstractComponent
 Inheritedid : *
Returns the id of this object.
CoreSprite
 Inheritedindex : Number
A number value to indicated the index of this IButton.
AbstractButton
 InheritedisConfigurable : Boolean
Indicates if the display is configurable.
CoreSprite
 InheritedisReleaseOutside : Boolean = true
Indicates if the button notify a releaseOutside event.
AbstractButton
 Inheritedlabel : String
Returns the text label for a button instance.
AbstractButton
 InheritedmaxHeight : Number
This property defined the maximum height of this component.
AbstractComponent
 InheritedmaxWidth : Number
This property defined the maximum width of this component.
AbstractComponent
 InheritedminHeight : Number
This property defined the mimimun height of this component.
AbstractComponent
 InheritedminWidth : Number
This property defined the mimimun width of this component.
AbstractComponent
 InheritedmouseEnabled : Boolean
Specifies whether this object receives mouse messages.
AbstractButton
 Inheritedselected : Boolean
A flag that indicates whether this control is selected.
AbstractButton
 Inheritedstyle : IStyle
Returns the style of this component.
AbstractComponent
 Inheritedtoggle : Boolean
Indicates a boolean value indicating whether the button behaves as a toggle switch (true) or not (false).
AbstractButton
 InheriteduseHandCursor : Boolean
A Boolean value that, when set to true, indicates whether Flash Player displays the hand cursor when the mouse rolls over a button.
AbstractButton
 Inheritedw : Number
(read-only) Indicates the virtual width value of this component.
AbstractComponent
Protected Properties
 PropertyDefined by
 Inherited_h : Number = 0
The protected virtual height value of the component.
AbstractComponent
 Inherited_scope : Sprite
The scope of the active display of this button component.
AbstractButton
 Inherited_w : Number = 0
The protected virtual width value of the component.
AbstractComponent
Public Methods
 MethodDefined by
  
AquaButton(id:* = null, isConfigurable:Boolean = false, name:String = null)
Creates a new AquaButton instance.
AquaButton
 Inherited
doLater():void
Launch an event with a delayed interval.
AbstractComponent
 Inherited
draw(... arguments):void
Draw the view of the component.
AbstractComponent
  
Returns the constructor function of the IBuilder of this instance.
AquaButton
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreSprite
  
Returns the constructor of the IStyle of this instance.
AquaButton
 Inherited
Invoked when the group property or the groupName property changed.
AbstractButton
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreSprite
 Inherited
hide():void
Hides the component.
AbstractComponent
 Inherited
initialize():void
Initialize the component.
AbstractComponent
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreSprite
 Inherited
isVisible():Boolean
Returns true if the component is visible.
AbstractComponent
 Inherited
lock():void
Locks the object.
CoreSprite
 Inherited
move(x:Number, y:Number):void
Moves the component.
AbstractComponent
 Inherited
Notify a change in this component.
AbstractComponent
 Inherited
Notify an event when the enabled property is changed.
AbstractComponent
 Inherited
Notify an event when you resize the component.
AbstractComponent
 Inherited
refresh(init:*):void
Refresh the component with an object of initialization.
AbstractComponent
 Inherited
registerView(scope:Sprite = null):void
Register the view in argument.
AbstractButton
 Inherited
resetLock():void
Reset the lock security of the display.
CoreSprite
 Inherited
scope():Sprite
Returns the scope reference of this IButton.
AbstractButton
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreSprite
 Inherited
setSelected(b:Boolean, flag:Boolean = false):void
Sets a boolean value indicating whether the button is selected (true) or not (false).
AbstractButton
 Inherited
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
AbstractComponent
 Inherited
setStyle(... args):void
Sets the style property on the style declaration or object.
AbstractComponent
 Inherited
setup():void
Setup the IConfigurable object.
CoreSprite
 Inherited
show():void
Shows the component.
AbstractComponent
 Inherited
toString():String
Returns the String representation of this object.
CoreSprite
 Inherited
unlock():void
Unlocks the display.
CoreSprite
 Inherited
Unregister the view of this button.
AbstractButton
 Inherited
update():void
Updates the component.
AbstractComponent
 Inherited
viewChanged():void
Invoked after the draw method and when the IBuilder is updated.
AbstractComponent
 Inherited
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
AbstractComponent
 Inherited
viewEnabled():void
Invoked when the enabled property of the component change.
AbstractButton
  
Invoked when the icon property is changed.
AquaButton
  
Invoked when the label change in the component.
AquaButton
 Inherited
viewResize():void
Invoked when the component is resized.
AbstractComponent
  
viewStyleChanged(e:Event = null):void
Invoked when the style of the component is changed.
AquaButton
Protected Methods
 MethodDefined by
 Inherited
_fireButtonEvent(type:String):void
Dispatchs a ButtonEvent with the specified type.
AbstractButton
 Inherited
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreSprite
 Inherited
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
AbstractComponent
 Inherited
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
AbstractButton
Property detail
backgroundproperty
public var background:Shape

The background of the button.

Constructor detail
AquaButton()constructor
public function AquaButton(id:* = null, isConfigurable:Boolean = false, name:String = null)

Creates a new AquaButton instance.

Parameters
id:* (default = null) — Indicates the id of the object.
 
isConfigurable:Boolean (default = false) — This flag indicates if the IConfigurable object is register in the ConfigCollector.
 
name:String (default = null) — Indicates the instance name of the object.
Method detail
getBuilderRenderer()method
public override function getBuilderRenderer():Class

Returns the constructor function of the IBuilder of this instance.

Returns
Class — the constructor function of the IBuilder of this instance.
getStyleRenderer()method 
public override function getStyleRenderer():Class

Returns the constructor of the IStyle of this instance.

Returns
Class — the constructor of the IStyle of this instance.
viewIconChanged()method 
public function viewIconChanged():void

Invoked when the icon property is changed.

viewLabelChanged()method 
public override function viewLabelChanged():void

Invoked when the label change in the component.

viewStyleChanged()method 
public override function viewStyleChanged(e:Event = null):void

Invoked when the style of the component is changed.

Parameters
e:Event (default = null)