FiftyOneReasonsInteractive Media Development + Exploration

AS3 ToolTip Class

Posted by | Phil Chertok | on September 24, 2009 | 2 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.

Share the love:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • BlinkList
  • LinkedIn
  • MySpace
  • Reddit
  • Yahoo! Buzz

Comments

2 Responses to “AS3 ToolTip Class”

  1. Sebastiaan
    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!

  2. Phil Chertok
    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.

Leave a Reply





    About

    A51 is a Canadian interactive development firm located in Toronto. We develop client/server and multi-user applications with a heavy focus on Flash development.

    Subscribe to our feed

    Search

    Admin