pseudo.ToolTip class
View Sample :: Return to index  
pseudo.ToolTip.ToolTip(pThis:MovieClip)
ToolTip constructor. You never use the constructor to create this component.

Parameters None
Returns Nothing
Example
    None


pseudo.ToolTip.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.ToolTip
Use this static function to create tool tip on the specified movie clip. Never use constructor directly to do this.

Parameters pOwner The movie clip on which the new ToolTip will be drawn.
strName The new ToolTip instance name.
nDepth The new ToolTip instance depth.
Returns The reference to the ToolTip instance
Example
    //get instance of the look that will be used to draw elements
    var look:Object = pseudo.look.XPLook.getInstance();
    
    //create movie clip where the components will be drawn
    _global.main = pseudo.BaseMovie.create(_root, "main", 1);
    pseudo.ToolTip.create(_root, "m_toolTip", 2);
    
    // add label to the main movie. addItem function will
    // also create a movie clip using a specified
    // class function
    var lbl = _global.main.addItem(pseudo.Label, "lbl", 1);
    
    //applying the look to the movie will use the same look and feel
    // to all components that were added to it
    _global.main.setLook(look);
    
    //set the size of the label
    lbl.setSize(250, 20);
    
    lbl.setAlign("center");
    lbl.setText("Place Mouse Over Me To See Tool Tip");
    
    // add listener that will display the tool tip when the mouse is over
    // the label. We use tryToShow() function that shows the tool tip after
    // a little delay
    
    lbl.addListener("rollOver", lbl, function(){ pseudo.ToolTip.getInstance().tryToShow(this, "Tool Tip Text"); });
    
    //Draw main movie with everything that is on it
    _global.main.update();
    _global.main.draw();
    
    var tip = pseudo.ToolTip.getInstance();
    //Set the type of the tool tip
    tip.setData({type:"label"});
    
    //Set the look of the tool tip. ToolClass is not derived
    // from the pseudo.BaseMovie, so it has its own setLook() function
    tip.setLook(look);
           


pseudo.ToolTip.setLook(look:Object):Void
This function sets the look and feel for the tool tip using the look object passed as a parameter. ToolClass is not derived from the pseudo.BaseMovie, so it has its own setLook() function.

Parameters look Object value. This is the reference to the look instance that will be used to render tool tip
Returns Nothing
Example
    None


pseudo.ToolTip.setData(data:Object):Void
?????.

Parameters data Object value.
Returns Nothing
Example
    None


pseudo.ToolTip.show(strText:String, x:Number, y:Number):Void
Displays the tool tip.

Parameters strText String value. The text that will be displayed in the tool tip
x Number value. x-coordinate for the tooltip.
y Number value. y-coordinate for the tooltip.
Returns Nothing
Example
    None


pseudo.ToolTip.hide():Void
Hides the tool tip.

Parameters None
Returns Nothing
Example
    None


pseudo.ToolTip.tryToShow(owner:MovieClip, strText:String):Void
Displays the tool tip after a little delay.

Parameters owner MovieClip instance. Movie clip for which the tool tip will be displayed
strText String value. The text that will be displayed in the tool tip
Returns Nothing
Example
    None
Flash UI Components (c)TUFaT.com, All Rights Reserved.