Thanks, Grégoire. Your thought process seemed to work. I also ended up having
to include a check for whether or not the tooltip MC was undefined
onEnterFrame.
- MM
class toolbarFunctions extends MovieClip {
private var tipID:Number;
function toolbarFunctions() {
}
function onRollOver():Void {
this.tipID = setInterval(this, "displayTip", 1000);
}
function displayTip():Void {
// create text container...
// check to see if it was getting created again and again...
if (_root.tooltip == undefined) {
_root.createEmptyMovieClip("tooltip", 20);
_root.tooltip.createTextField("tip", 1, 0, 0, 100, 100);
_root.tooltip.tip.text = "tooltip";
// make text follow mouse...
_root.tooltip.onEnterFrame = function():Void {
var coord:Object = {xx:_root._xmouse,
yy:_root._ymouse};
this._x = coord.xx;
this._y = coord.yy;
};
clearInterval(this.tipID);
}
}
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com