An easy to use dynamic tool tip.
Features:
- Expands vertically according to the contents dynamically
- flips according to button/movieClip position
- If your mouse has reached the far corner,
you still get to see the tooltip info - Tip contents are stored in an array for easy modifications
- All tool tip shares the same movieClip, meaning you just need to edit one
- easily set fade/movement speed/uppercase through the variables
- Only one tooltip movieclip is generated at a time, save performance
- HTML enabled
AATW - added along the way
- onRelease tip – 22 Nov 07
if you would like to use the existing button and just dynamically link them to a site, you can do so by the following steps:- Create an array containing the links and remember to arrange according to the button numbers. After the tipInfo array, add another array like:
var linkstosomewhere:Array = ["http://www.google.com", "http://www.yahoo.com", "http://www.msn.com", "http://www.youtube.com", "http://www.flickr.com", "http://activeden.net"];
- Next in the for loop below it, add
b.link = root.linkstosomewhere[i]; b.onRelease = gotoSite;
right after b.toolTipInfo = root.tipInfo[i]; - lastly, open up toolTipFunctions.as and create a function at the end of the file which will launch the link:
gotoSite = function () { getURL(this.link, "_blank"); }
- Create an array containing the links and remember to arrange according to the button numbers. After the tipInfo array, add another array like:
- Bug fix. Tool tip appears off the pointer – 04 Jan 08
open up toolTipFunctions.as and replace all “_root” with “root” ( press ctrl+f, find ‘_root.’ and replace with ‘root.’ ) so this will refer the path from where it was called..
