I am trying开发者_C百科 to have a tool-tip in Flex 3, where in when my mouse is over the some value, it should show a tool-tip just like you get it for any classes in Eclipse IDE.
Suppose, your mouse is over word "String
" in java, you get a tool-tip stating the description of java.lang.String
and its syntax. It also allows to copy the contents.
Is it possible to create such a tool-tip in Flex 3 ? Can anyone please help me ?
Thanks.
Edit : I want this kind of tool-tip to appear, and when pressed F2, it should have horizontal and vertical scroll bars and we should be able to copy the contents from tool-tip.
If you are looking for an Eclipse like experience during Flex 3 development, you need the FlashBuilder IDE.
If it's over a UI control (text, button, field, etc.) in your running Flex application, you need to use the toolTip
attribute (see http://livedocs.adobe.com/flex/3/html/help.html?content=tooltips_3.html for samples).
Everything you need to know should be in these docs.
The Flex 3 version of the same docs.
You are going to have to create a custom component, and write mouseOver
and mouseOut
handlers for the component that is supposed to trigger the "toolTip".
Edit
You'll have to also add code to check that when the mouse leaves the trigger, if it is on the toolTip, then the toolTip must not close.
Sorry about the instructions without code, I'll try to write you a demo when I get home
精彩评论