Tooltip V. 3.5 API Docs
Properties
| Name | Type | Description |
| alpha | Number | Property (1-100) that indicates Tooltip's main body transparency. |
| animateResize | Boolean | Property indicates whether component resize is animated. |
| autoDrag | Boolean | Property indicates whether the component is dragged automatically (true) or not (false). |
| autoShow | Boolean | Property indicates whether the component is displayed automatically (true) or not (false). To manually display Tooltip Component that is located on stage use Tooltip.showTooltip() method. |
| autoSize | Boolean | Property indicates whether the component is resized to the width of the text (true) or to a fixed value (false). |
| border | Boolean | Property indicates whether Tooltip's border is displayed (true) or not (false). |
| borderAlpha | Number | Property (1-100) that indicates Tooltip border transparency. |
| borderColor | Number | A Hexadecimal Color value of the Tooltip border. |
| borderSize | Number | Property indicates component's border size. |
| color | Number | A Hexadecimal Color value of the component's main body. |
| content | String | Property ( text, external image, library item ) that defines Tooltip's content. You need to define content type by setting Tooltip.type property to either image or text. |
| cornerRadius | Number | Property defines Tooltip's corner radius. |
| padding | Number | Property defines content padding. |
| position | String | Property indicates the direction Tooltip is turned.
|
| preloader | String | Property indicates whether image preloader is displayed.
|
| preloaderColor | Number | A Hexadecimal Color Value of the image preloader. |
| shadow | Boolean | Property indicates whether the Tooltip's shadow is displayed (true) or not (false). |
| shadowAlpha | Number | Property indicates the alpha transparency value for the shadow color. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowAngle | Number | Property indicates the angle of the shadow. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowBlurX | Number | Property indicates the amount of horizontal blur. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowBlurY | Number | Property indicates the amount of vertical blur. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowColor | Number | A Hexadecimal Color value of the Tooltip shadow. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowDistance | Number | Property indicates The offset distance for the shadow, in pixels. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowHideObject | Boolean | Property indicates whether or not the shadow is an inner shadow. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowKnockout | Boolean | Property applies a knockout effect (true), which effectively makes the object's fill transparent and reveals the background color of the document. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowQuality | Number | Property defines the number of times to apply the filter. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| shadowStrength | Number | Property indicates the strength of the imprint or spread. For more information see Adobe Flash 8 flash.filters.DropShadowFilter class. |
| tailHeight | Number | Property indicates the height of the Tooltip's pointer "tail". |
| textAlign | String | Property indicates text alignment.
|
| textColor | Number | A Hexadecimal Color value of the font. |
| textFont | String | Property defines Tooltip's font. Please note that specified font is not embedded automatically. In order to prevent problems use “safe fonts”, or embed fonts in your flash movie. |
| textSize | Number | Property indicates font size. |
| textHtml | Boolean | Property indicates whether the html text formatting is enabled (Tooltip.autoSize property has be set to false). |
| type | String | Property defines content type.
|
Methods
| Name | Return Type | Description |
| showTooltip( void ) | Void | Shows Tooltip Component. Example myTooltip.showTooltip(); |
| hideTooltip( void ) | Void | Hides Tooltip Component Example myTooltip.hideTooltip(); |
Events
| Name | Return Value | Description |
| onLoadStart | type target |
Triggered when a call to MovieClipLoader.loadClip() has begun to download a file. Example myTooltip.publicListener.onLoadStart= function(target_mc) { |
| onLoadProgress | type target |
Triggered every time the loading content is written to the hard disk during the loading process (that is, between MovieClipLoader.onLoadStart and MovieClipLoader.onLoadComplete). Example myTooltip.publicListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) { trace("Load Progress: " + (loadedBytes/totalBytes)); } |
| onLoadComplete | type target |
Triggered when a file that was loaded with MovieClipLoader.loadClip() is completely downloaded. Example myTooltip.publicListener.onLoadComplete = function(target_mc, loadedBytes, totalBytes) { trace("Load Complete"); } |
| onLoadInit | type target |
Triggered when the actions on the first frame of the loaded clip have been executed. When this listener has been invoked, you can set properties, use methods, and otherwise interact with the loaded movie. Example myTooltip.publicListener.onLoadInit = function(target_mc) { trace("MovieClip Initiated."); } |