KoolMoves AS3 API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class ToolTip

Package | km.components
Class | public final class ToolTip
Inheritance | ToolTip UIComponent flash.display.Sprite

The ToolTip component class.
The toolTip is automatically enabled when it is added to the stage and disabled when it is removed from the stage.

Example

    import km.components.*;
    import km.skins.*;

    var b:LabelButton = new LabelButton();

    ScriptedSkin.applyTo(b);

    b.setSize(60,20);
    b.move(20,20);
    b.toolTip = 'This ia a button';
    addChild(b);

    addChild(new ToolTip());

Public Properties

| Property | Defined by
--- | --- | ---
|  | defaultTextFormat : TextFormat | ToolTip
|  | delay : Number = 500 | ToolTip
|  | textMarginH : int Horizontal text margin. | ToolTip
|  | textMarginV : int Vertical text margin. | ToolTip
|  | tip : Image [read-only] >> Reference to the actual tip. | ToolTip

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | ToolTip() | ToolTip
|  | setProperties(o:Object):void Sets a number of properties at once. | UIComponent

Events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined by
--- | --- | --- | ---
|  | animationComplete | The animationComplete event is broadcasted when an animated move is completed. | UIComponent

Property detail

defaultTextFormat | property

`defaultTextFormat:TextFormat` [read-write]

Implementation
`public function get defaultTextFormat():TextFormat`
`public function set defaultTextFormat(value:TextFormat):void`

delay | property |

`public var delay:Number = 500`

textMarginH | property |

`textMarginH:int` [read-write]

Horizontal text margin.

Implementation
`public function get textMarginH():int`
`public function set textMarginH(value:int):void`

textMarginV | property |

`textMarginV:int` [read-write]

Vertical text margin.

Implementation
`public function get textMarginV():int`
`public function set textMarginV(value:int):void`

tip | property |

`tip:Image` [read-only]

>> Reference to the actual tip.

Implementation
`public function get tip():Image`
Constructor detail

ToolTip | () | constructor

`public function ToolTip()`

Last update : 04/05/2008