Hi list...
I can't figure out why the onEnterFrame attached to _root.tooltip in my
displayTip function removes that MC after one frame. If I set the
onEnterFrame to alter any other MC on the stage, no problem, but when I
set it to alter itself, it errors. Any ideas?
Thanks,
- Michael M.
class toolbarFunctions extends MovieClip {
private var tipID:Number;
function toolbarFunctions() {
}
function onRollOver():Void {
tipID = setInterval(this, "displayTip", 1000);
}
function onRollOut():Void {
_root.tooltip.removeMovieClip();
clearInterval(tipID);
}
function displayTip():Void {
clearInterval(tipID);
_root.createEmptyMovieClip("tooltip", 554);
_root.tooltip.createTextField("tip", 1, 0, 0, 100, 100);
_root.tooltip.tip.text = "hi";
// FAILS HERE:
_root.tooltip.onEnterFrame = function():Void {
_root.tooltip._x = _root._xmouse;
_root.tooltip._y = _root._ymouse;
};
}
}
_______________________________________________
[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