AFComponents.com

Tool tips in Movie Clips
Date: Jul 25, 2007   Views: 3974  
Question:
I am experiencing problems with the alignment of the Tooltip to the button it is linked to.

I am using the Tooltip inside of a movie clip... and according to a thread on your forum I am supposed to put the component on the main stage as well as put some reference in the actions layer... is this so?

what would this code look like if the button instance name is Bubbles? Where do I put this code, in the Movie Clip or in the Actions Layer on the Main Stage?

Do I place the Tooltip on the main stage, name the instances within the MC as stated in the AS on the main stage, then add the AS to the main stage that includes the instance names from within the MC? or am I way off.
Answer:

andreit (Admin)
You are correct, it is best to keep an instance of the Tooltip component on main time line (on the _root). You can use _root keyword to reference component's instance. For example, if the Tooltip's instance name is myTooltip than the code will look like this:

Bubbles.onRollOver = function (){
_root.myTooltip.showTooltip();
}

Bubbles.onRollOut = function (){
_root.myTooltip.hideTooltip();
}

Component Info
Other Questions


© 2005-2007 advanced flash components