ActiveDen

Tooltip Class

Customizable Tooltip Class scripted in AS3 .

Features:

  • Highly customizable
  • Never leaves screen (possible to assign x and y distance from screen)
  • Supports HTML & CSS
  • Font (Support of embedded fonts)
  • Text size
  • Bold & Italic text
  • Text color
  • Text padding (x & y) (Enlarges Tooltip’s rectangle)
  • Maximum width (enables Word Wrap)
  • Tooltip color
  • Tooltip alpha
  • Corner radius
  • Appear time
  • Fade time
  • Show arrow
  • Distance between Mouse/Target and Tooltip
  • Direction
  • Cursor follow (Boolean: true or false)
  • Shadow filter

How to Use:

  1. Import Tooltip.

    e.g. import com.ui.Tooltip;

  2. Create Tooltip using new operator.
    new Tooltip(); <- for default properties.
    new Tooltip( {text: "Hello!"} ); <- creates Tooltip with text “Hello!”, rest properties will be default.
  3. You can change Tooltip using .change() function without creating new Tooltip.

If you have any suggestions for improving Tooltip Class, PM me.

by
by
by
by
by