AS3 ToolTip Class
Phil Chertok on September 24, 2009
4 Comments
One common element of many applications is the tool tip. Tool tips can be useful for clarifying interactions and giving more detailed descriptions of elements in an app. Unfortunately AS3 does not have any native tool tip class so we have had to create our own.
Our goal was to make our tool tip class as easy to use as possible. Because we use a very specific framework here at A51 our regular tool tip class is very much married to it. So we decided to strip out any attachments to our framework and to provide it to the community.
Using the class is fairly straightforward, somewhere in your application you simply need to pass a reference of the stage to the class by calling ToolTip.init( stage ); You can then call ToolTip.show( ‘My tool tip message here’) at any point in your app. Don’t forget to call ToolTip.hide() to make it disappear.
You can check out an example of the class in action here. You can download this example and the class itself here.

October 14th, 2009 @ 5:08 AM
Very nice tooltip imo, simplistic and easy to adjust. Already added a dropshadow and am currently trying to change the font to an embedded font in my swf.
Cheers!
October 14th, 2009 @ 1:31 PM
Thanks Sebastian. We’ve got it working here with embedded fonts, just thought we’d throw it out there for people in the most simple way possible.
June 16th, 2010 @ 11:07 AM
Any chance od seeing a sample with embedded fonts? I’m having a bit of trouble implementing this….
June 16th, 2010 @ 12:23 PM
We here use FlashDevelop which allows us to pull in the Flex SDK into our Flash projects. So when we compile, we actually compile with the Flex SDK as apposed to the Flash compiler. With, Flex, you can use the Embed directive like:
[Embed(source='arial.ttf', fontName = 'Arial', mimeType = 'application/x-font', unicodeRange="U+0041-U+005A")]
private var Arial:Class;
Hope that helps!