EasyToolTip Component
|
|
|
|
| FlashStore rating: |
|
| User rating: |
Not rated yet.
|
| Date: |
16-02-07 |
| Submited by: |
jumpeye |
| Skill: |
beginner |
| Price: |
$ 19.99 |
|
|
| |
About |
The Easy ToolTip component is a light-weight highly configurable component that can be triggered to display text or Html tips. Just place the component on the stage (in your flash), and trigger it when needed, using either of its properties toolTipHTML(); or toolTipText();
Compatibility:
Flash MX/MX2004/8 published for Flash Player 6+ |
UI Access |
| Components panel under UI Pro Components – jumpEYE. |
Support address |
|
|
Useful links |
|
Download documentation |
|
EasyToolTip Component documentation (49.61 KB)
|
Code samples |
Properties:
AppearDelay(default=400) – time in ms after the tip appears;
AutoPosition(default=true) – if true, the tip will set its position so that it doesn’t get out of the bounds of the flash stage;
FillColor(default=#CCCCCC) – the color behind the text;
FollowMouse(default=true) – if true, the tip will change its position according to the mouse’s;
ManualWidth(default=0) – sets a fixed width of the tip;
SetFormatHtmlTags(default=false) – set true if you want the text style to be set using the html tags;
ShadowAlpha(default=20) – the transparency of the shadow;
ShadowAngle(default=45) – the angle of the shadow;
ShadowDistance(default=1) – the distance of the shadow;
ShadowEnable(default=true) – set true to enable the shadow;
ShadowFillColor(default=#000000) – the shadow’s color;
ShadowLineColor(default=#000000) - the shadow’s line color;
ShadowThickness(default=2) - the shadow’s thickness;
TextAlign(default=left) – text alignment;
TextBackground(default=true) – set false to not use text background; this way the shadow’s transparency can be used;
TextBorder(default=true) – if true, the text will have border;
TextBorderColor(default=#000000) – the text’s border color;
TextColor(default=#000000) – the text’s color;
TextFont(default=Arial) – the text’s font;
TextLeftMargin(default=3) – the text’s left margin;
TextRightMargin(default=3) - the text’s right margin;
TextSelectable(default=false) – if true, the text is selectable;
TextSize(default=11) – the text size;
xDifference(default=3) – the difference on the x coordinate of the tip from the mouse’s
yDifference(default=3) - the difference on the y coordinate of the tip from the mouse’s
Code Samples
/*
(the instance name of the component on the stage is “toolTip”; “testMC” is a movieClip on the stage)
*/
testMC.onRollOver = function() {
toolTip.toolTipText("the text to be displayed");
};
testMC.onRollOut = function() {
toolTip.clearText();
}; |
|
|
|
|
|