Create a custom Tooltip:
1) Create a custom tooltip class:
i) implements="mx.core.IToolTip"
ii) Action Script:
[Bindable]
public var objnode:Array;
private function init():void
{
if(objnode!=null)
{
//Action
}
}
public var _text:String;
public function get text():String {
return _text;
}
public function set text(value:String):void {
}
private function complateHandler():void
{
this.height=(26*objnodelength)+20;
}
2) On any control create tool tip event:
private function createToolTipHandler(event:ToolTipEvent,type:Number):void
{
var toolTip:myCustomToolTip = new myCustomToolTip();
toolTip.colornode = nodearraysource;
toolTip.percentHeight=100;
toolTip.percentWidth=100;
event.toolTip = toolTip;
}
Wednesday, June 17, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment