Search tutorials
How to have tooltips:
download my tutorial files and place the toolTip.as in the same directory as your .fla. Now on the first Frame of your .fla put this code:
#include "toolTip.as"
This external actionscript is loaded soon as you publish and contains the functions neccesary to show the tooltips.
now on every button you have, use this code:
on(rollOver){
_root.toolTip("Your tooltip here",5)
}
on(rollOut,press){
_root.toolTipEx();
}
or, with a variable that is loaded from an external source:
on(rollOver){
_root.toolTip(your_variable,5)
}
on(rollOut,press){
_root.toolTipEx();
}
the first parameter of the toolTip-function is your tooltip text, the second the duration of display in seconds.
the function of the Tooltip itself as it appears in the external script is explained with some comments below, but all you really have to know is how to assign this functions to your buttons.
I included a test file to show you how this looks on Buttons named
test_tooltip.fla.... have fun with the overleaf sniplet,
daarboven
#include "toolTip.as"This external actionscript is loaded soon as you publish and contains the functions neccesary to show the tooltips. now on every button you have, use this code:
on(rollOver){
_root.toolTip("Your tooltip here",5)
}
on(rollOut,press){
_root.toolTipEx();
}
or, with a variable that is loaded from an external source:
on(rollOver){
_root.toolTip(your_variable,5)
}
on(rollOut,press){
_root.toolTipEx();
}
the first parameter of the toolTip-function is your tooltip text, the second the duration of display in seconds.
the function of the Tooltip itself as it appears in the external script is explained with some comments below, but all you really have to know is how to assign this functions to your buttons.
I included a test file to show you how this looks on Buttons named
test_tooltip.fla.... have fun with the overleaf sniplet,
daarboven | » Level Intermediate |
|
Added: 2005-05-06 Rating: 5 Votes: 6 |
| » Author |
| Flash Designer and Developer |
| » Download |
| Download the files used in this tutorial. |
| Download (21 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!