# Dynamic Tooltip with sides detection

**URL:** <https://forum.kirupa.com/t/dynamic-tooltip-with-sides-detection/243725>\
**Category:** open source\
**Created:** [November 9, 2007, 10:54pm UTC](https://forum.kirupa.com/t/dynamic-tooltip-with-sides-detection/243725 "2007-11-09T22:54:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [November 9, 2007, 10:54pm UTC](https://forum.kirupa.com/t/dynamic-tooltip-with-sides-detection/243725/1 "2007-11-09T22:54:34Z")

</div>

This class creates an animated tooltip which automaticaly detects if it won’t fit on display and automaticallyshow from other side…  
It also can be showed after some time in ms, and has three experience levels… and it also has unique feature as loading SOUNDS with progress bar (showing both load and play progress).  
U don’t need to add it to display list, just pass the container in constructor.  
To use it just invoke:

```auto

new Tooltip(DisplayObjectContainer,text:String=null,time:uint=0,sound:String=null);

```

U have also some interfaces:

```auto

public static function get bitmapFilterQuality():int {
public static function set bitmapFilterQuality(number:int):void {
public function get text():String {
public function set text(text:String):void {
public function set soundURL(sound:String):void {
public function get size():Number {
public function showDelayed(time=400):void {
public function show():void {
public function hide():void {
public function invalidate():void {

```

And static variables:

```auto

public static var experienceMode:String=SMOOTH;
public static var embedFonts:Boolean=false;

```

And constants:

```auto

public static const FAST:String="fast";
public static const BALANCED:String="balanced";
public static const SMOOTH:String="smooth";

```

To preview Tooltips visit [http://felixz.dl.interia.pl/](http://felixz.dl.interia.pl/) and rollover texFields in Panel Sterowania window…  
To see what i meant by “automaticaly detects if it won’t fit on display…” just drag that window near upper right corner and see the difference.  
Sorry but my english is bad…  
I made an update resolving displaying tooltip when using with sound (I overlooked it) Also I merged all classes into one…
