Help tool tip

Hello

I was after a bit of advice on how do I create tooltips.

I have thumbnails of different colors. When the user hovers over the thumbnail I want a ToolTip appears with the name of the color.

What is the best way to do it?

I got the job of the ToolTip - just need a bit of advice on the content of the ToolTip!

This is my code so far but don't know how to create several ToolTips:

btn1.addEventListener("mouseOver", mouse_RollOver);
btn1.addEventListener("mouseOut", mouse_RollOut);
btn1.addEventListener("mouseMove", mouse_Move);

var tooltip:Tooltip = new Tooltip();
tooltip.txt.text="colour here";
tooltip.x=stage.mouseX;
tooltip.y=stage.mouseY-btn1.height;

function mouse_RollOver(e:MouseEvent):void {
addChild(tooltip);
var myTween:Tween=new Tween(tooltip,"alpha",Regular.easeIn,0,1,0.6,true); 
}

function mouse_RollOut(e:MouseEvent):void {
removeChild(tooltip);
} 
function mouse_Move(e:MouseEvent):void {
tooltip.x=stage.mouseX;
tooltip.y=stage.mouseY-btn1.height;

I don't want to repeat this code several times for each button as there is lot of thumbnails - I appreciate any advice or help on this...

Thank you

You should do the buttons of all instances of a class that you write your won database.

They can send an event of the ToolTip, and then on your main timeline (or class of documents or where ever) you can listen for this event. Something like this:

package {}

import flash.display.MovieClip;

import flash.events. *;

import flash.utils.Timer;

import flash.events.EventDispatcher;

SerializableAttribute public class MyButton extends MovieClip {} Dynamics

public static var defaultDelay:Number = 1000;

public var tipText:String;

private var _timer:Timer;

private var _tipDelay:Number = 0;

private var _intervalID:Number;

public void MyButton() {}

Stop();

addListeners();

addEventListener (Event.ADDED_TO_STAGE, init);

}

public void init(e:Event) {}

removeEventListener (Event.ADDED_TO_STAGE, init);

tipDelay = KPButton.defaultDelay;

_Timer.addEventListener (TimerEvent.Timer, timerHandler);

}

private void addListeners() {}

buttonMode = true;

mouseEnabled = true;

mouseChildren = false;

If (! hasEventListener (MouseEvent.MOUSE_OVER)) {}

addEventListener (MouseEvent.MOUSE_OVER, handleOver);

addEventListener (MouseEvent.MOUSE_OUT, handleOut);

addEventListener (MouseEvent.MOUSE_DOWN, handlePress);

addEventListener (MouseEvent.CLICK, handleClick);

}

}

private void removeListeners() {}

buttonMode = false;

mouseEnabled = false;

removeEventListener (MouseEvent.MOUSE_OVER, handleOver);

removeEventListener (MouseEvent.MOUSE_OUT, handleOut);

removeEventListener (MouseEvent.MOUSE_DOWN, handlePress);

removeEventListener (MouseEvent.CLICK, handleClick);

}

private void handleOver(e:MouseEvent):void {}

{if (e.buttonDown)}

return;

}

_Timer.start ();

}

private void handleOut(e:MouseEvent):void {}

_Timer.reset ();

dispatchEvent (new Event ("hideTip"));

}

private void handleClick(e:MouseEvent):void {}

_Timer.reset ();

}

private void handlePress(e:MouseEvent):void {}

_Timer.reset ();

dispatchEvent (new Event ("hideTip"));

}

private void timerHandler(e:TimerEvent):void {}

dispatchEvent (new Event ("tooltip"));

}

public function set {tipDelay(num:Number):void}

_tipDelay = num;

_Timer = new Timer(_tipDelay,1);

}

public function get tipDelay (): number {}

Return _tipDelay;

}

}

}

Tags: Adobe Animate

Similar Questions

  • Can I introduce the tool tip act as a Confirmation pop-up box?

    My client wants a box of confirmation before a visitor downloads a file.

    I can paste in the HTML code to do this, but then I can't control the text of the link text style unless I have add like a style on line in the embedded HTML code. Is not ideal.

    I wonder, however, if there could be a way to have it Muse tool tip? I have the spectacle of tip when hovering over or clicking on text, so I could add the text that my client wants and a button to proceed with the download. But there should be a way out of the balloon at that time, as a Cancel button which was closing the ToolTip.

    Is there a way to do this in Muse?

    You should be able to use jQuery to do this! Just create a link button in the target area of the light therapy device and remove all other items / pictures. In this way, it appears and you can click out of it! Check it out!

    I hope this helps!

    Julia

  • Tool tip on the APEX 32 implementation

    Hello

    How can I activate the control UI ToolTip help APEX points? For example if I move the mouse over a button, a description of quickie tool tip appears developing the brief description of the functionality of this button.

    Usually, they appear in the color of light yellow background on traditional HTML applications.

    Thank you
    R

    Hello

    This might help
    http://www.inside-Oracle-apex.com/using-ToolTips-in-Oracle-Apex-applications/

    BR, Jari

  • tool tip memory leak

    Seems to be leaking memory associated with ToolTips.  Every time I put your mouse on a panel using tool tips I see case the dynamic memory usage constantly increases.  If I comment out the call to the functions of the tool tip (i.e. SetCtrlToolTipAttribute), memory leak disappears.

    There is no patch for 8.0.0, if it is tell you.

    But from the Toolbox of the programming interface is open-source, you can easily fix it yourself:

    The 8.0.0 3365 online version of C:\Program NIUninstaller Instruments\CVI80\toolslib\toolbox\toolbox.c, you need to add the function call following ListDispose:

    If (RectContainsPoint (bounds, point))
    {
    PointConvertCoordinates (Panel, child, & point, FALSE);
    ListDispose (sortedChildren);
    Return PointToPanel (child, point);
    }

    After you make the change, you will have to recompile the file (Options > create a file object) to regenerate the object file and restart CVI.

    Luis

  • Cannot remove SYSTRAY - TOOL TIP Windows XP

    SYSTRAY-TOOLTIP, I do not KNOW this THAT it IS AND EACH TIME, I get ON MY COMPUTOR THIS COMES UP FIRST, I ALSO SAID to SEND or NOT to SEND to Microsoft, which I continue to make every day.  Please let me know if I really needed this and how to remove it if I don't.

    I use Windows XP.

    Thank you.

    I followed what you said on the deletion of the Eparses-Tool Tip.  It did not work.  Thank you

    Locate the following key in the registry - (always back up the registry before making changes)

    This works for Windows 7 and Windows Vista

    HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced\\\

    Right-click on ShowInfoTip and choose Edit

    Change the value to 0

    Close the registry

    Restart the computer

  • HP help & tools is missing!

    Windows 7 / 64 / HP Pavilion p6720f

    Read the HP help & Tools folder in the start menu: VACUUM. How can I reinstall it?

    Thank you

    Orealius

    OK, so you don't have a lot of tools to work with, but there should be a file that we can push back on this issue.

    First verify that this file exists
    C:\Program Hewlett - Packard HP Vision material Diagnostics\DiscCreation\disccreation.exe

    If this file is good then the next task

    1 right-click on PC Tools folder in the start menu and open the location as we did earlier.
    2. then to click right anywhere on the screen and go again shortened
    3. navigate to the directory just above, and then tap on the disccreation.exe
    4. name this "HP Vision disc creation Diagnostics"

    From what I can tell this is the only file which is default in this folder.

    The folder itself is just that support shortened by here I mean theoretically you can place a shortcut to any program on your computer and run it from that folder in your Start menu. So while is, by default, the only program that has been on this file at the beginning, you can choose to keep it the only program, or you can add more, you can even finish with the entire folder and do no harm.

  • Tool tip property extendTool Script

    How to activate the tool tip property extends the Toolkit.

    RTFM: InDesign ExtendScript API (11.0) .helpTip

  • Customize the tool tip Message

    Hi all

    I have a Date component on my page and basically I'm trying to disable the Saturday and Sunday from the calendar that I made using the disabledDaysOfWeek attribute. In doing so, I get a message by default tool tip (in bold) who says:

    Example: 11/29/1998
    Enter a date that falls on one of the following days: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

    So I want to customize it by deleting the Saturday and Sunday of the above message. I tried shortDesc which did not work, instead of this displays the typed message (United Nations in bold) with the "BOLD" above.

    So, can I do this? If this isn't the case, I would like to disable this tool tip message.


    < af:inputDate value = "#{bindings." SelectDate.inputValue}.
    label = "" Date preferred: ""
    required = "true".
    shortDesc = "#{bindings." SelectDate.hints.tooltip}.
    Binding = "#{backingBeanScope.beanName.ID1} '"
    ID = "id1".
    disabledDaysOfWeek = "Sam Dim" >
    < f: validator binding = "#{bindings." SelectDate.validator} "/ >"
    < af:convertDateTime pattern = "#{bindings." SelectDate.format} "/ >"
    < / af:inputDate >

    Published by: Saif Khan on May 14, 2012 16:23

    Hi Saif,

    Saturday and Sunday, must be removed by default if you set disabledDaysOfWeek = 'Sam Dim. " I had a similar request in one of my projects.
    I am able to remove the ToolTip text of tool on Sunday. Here is my code:

    *
    disabledDaysOfWeek = 'Sun '.
    * value = "#{pageFlowScope.pickUpDate}" / > *.

    And here is a picture showing Sunday being removed from the balloon. http://ADF-use-cases.googlecode.com/files/date.PNG

    FYI: I use Jdev 11.1.2.0

  • Need help creating tip Action for Navigation "Inside-the-same-slide" to let the user Play slide again

    I use 8 Captivate. It is a scenario of HTML5.

    I have need of a button which will allow the user to "replay" the slide. I don't want the button to take the user to the front, back, or do anything else. I want the button to start the slide at the beginning and play without interruption until the end.

    I am looking for help on how to do this using variables and advanced for HTML5 actions or, Alternatively, recommendations on the good tutorials for advanced actions. I prefer the tutorials that will allow me to start at the bottom. I was not able to find tutorials advanced action that assume no prior experience.

    I know that each new user must say this, and I'm afraid that's true for me too. If I can't create a HTML5 work quickly replay button, it will get me in trouble with the client.

    Try this:

    cpCmndGotoSlide is a system variable, which the index starts at 0. The variable cpInfoCurrentSlide system includes an index starting at 1. The reason for the subtraction in this Expression. You need to add continue because a tip action will not release the read head.

    Why choose Standard Simple action? -Captivate Blog

  • Need help tool bar

    I was using Illustrator CS5 last Friday without problem, then all of a sudden I lost the ability to use the top of black selection left arrow in the Tools menu.

    Now, he will only select pieces of objects, but will not create a box for element move and resize.

    Will there be a mater reset button to go back to return to the default settings?

    Or does anyone know how I can get this back?

    I need help please.

    Thank you

    Stuart

    Display > display the bounding box.

    You can of course use the scale tool to resize objects without using bounding boxes.

  • Help with tip Action - Hide caption does not

    Hi all

    I am relatively new to advanced use of Captivate stocks (now using Cap5). I have a strong background in Actionscript, so programming concepts are not new for me. However, this relatively simple process has left me speechless. Here's what I have going. Using variables and advanced actions, I use multiple CHOICE answers as a matter of likert scale. I do this so I can send the user to a specific slide based on the culmination of a pre-test score and post test. So, in my blade of MCQ test I 5 responses and the value of each of them to assign a number to a variable, once chosen. That is to say. Click 1, strongly agree to assign v_Score1 to 1, click 2 are agree assigns 2 to v_Score1, etc. I then an expression that adds two slides responses (v_totalScore = v_Score1 + v_Score2). On the next slide, I show that v_Score1, v_Score2 and v_totalScore are in the legends. Then I have an action on a button that triggers another action called a_goToResults. a_goToResults is a fast action with two conditions. The first said if v_totalScore is less than 5 go to the next slide and hide legend blue (cap_Blue). The other condition is if v_totalScore is 5 or more to go to the next slide and hide the Red legend (cap_Red). Everything works except for the part of the skin. I named the legends and they selected in the drop-down list, so I don't know there are no typos. I can't make Captivate to hide the legend however. Someone at - it give me advice or know another way to do what I'm doing? Thanks in advance.

    Craig.MCQ.pnggetTotal.pnggoResults1.pnggoResults2.pngresults.png

    Hello

    On which the blades are these legends? I suspect they are on another slide of the slide where the peak action is executed?

    You can't show/hide an object with a tip action unless it is on the same blade where the action. I once blogged about display objects / masking. Perhaps it might help you:

    Play hide and seek with the Captivate objects

    BTW, my blog is almost entirely on stock advanced to CP5 and has links to articles which explain in more depth. I'm not a programmer, so maybe that's superfluous for you.

    Lilybiri

  • Glossary of terms as tool tips/roll over the legends

    Is it possible to have my legend text defined online via tooltips or roll on legends?  These definitions of terms / can be autopopulated by the glossary widget, I created?  I think I've seen do Captivate but have never done it myself.  Thanks for your help.

    Hello and welcome to the forum,

    Indeed, a pop-up window is not possible with the interaction of the glossary. What might serve your purpose is to have a button (form) on each slide in which appears the glossary? Or even use the hyperlink feature to run a fast action which makes the visible glossary? Of course, you also offer the possibility to close. You can time the Glossary for the rest of the project, you can have buttons to form on the master slide or also synchronized to the rest of the project. Just an idea...

    Lilybiri

  • TOOL TIP does not work!

    Hello

    (1) now I can see the legend of an object/field as a TOOL of ART, fine.

    (2) after that I'm in conjunction with the associated data source field, I also had the value of this object/field as ToolTip, fine.

    I mean, not 2 tooltips at the same second, either (1) ir (2), fine.

    But, the two work for ONLY the fields editable, ToolTip does not work for the "readOnly" fields (I colored the fields with the GRAY color)!

    Pls let me know how can I get a ToolTip for all KINDS of areas, like, Greyedout, field "readOnly"... all the

    Thank you

    The desired resize code has already been postponed in one of your other posts, here is a link:

    http://forums.Adobe.com/message/3890035#3890035

  • Mix help tool

    After using the gradient tool, I want to transform the lines and then sketch out the lines. How can I do this? Attached are two images. A display of the image and the other showing the image when selected. Only two beginging lines have a path that is editable, how I break it so all lines are editable.

    I hope that makes sense.

    Thank you.

    Select your items, and then in the object Menu, choose Expand.

  • CSS tool tips

    I hope someone can point me in the right direction here.

    I'm almost done a site where, on one page, I inserted a code of a ToolTip, I found on the net to create a reversal of some texts explanation.

    The problem is that now I entered the code between the head of <>< / head > codes, it has lowered my banner, logo and buttons by a good inch, and I can't reposition to where they were. This look so bad if all the pages have been positioned like that, but when browing through the pages, this one page falls just and inch and looks unprofessional.

    Any way to stop this code changes the shape and the layout of the page. I'm very new to css, so I'm struggling with some aspects.

    Any help would be greatly appreciated.

    If I were not so hasty in my approach and too quick to give, I would have found earlier that this is the problem. DOH!

    I solved the problem. Thank you.

    Nothing to see here, move; )

Maybe you are looking for

  • DC5800 bios update

    I have a HP Compaq originally shipped with XP Pro dc5800 and now has Window 7 Pro.  The reference is AK819AW #ABA.  He has BIOS version 786F2 v01.04 dated 31/01/2008.  I was looking on the HP site for an update of the BIOS for it and found nothing in

  • Cannot locate my epson connect

    Hi I cannot find my epson connect window. I know I had a. any help would be apprec. Thank you PHIL

  • Turn off or unenable on-screen keyboard

    How to disable or uneable on-screen keyboard?

  • Change the key of win 7

    I adapted the new HARD disk that is advanced format, my (lenovo) version of win7pro load. I downloaded an iso version that works, but I need to change my genuine product key. When I try it on the activation screen it throw error. Cannot find phone nu

  • Icon Smartphones New blackBerry on my screen

    I have a new icon that just showed up on my screen beside the number of unopened messages.  It is a yellow circle similar to the browser icon but without the arrow and there a 2 to the left of it.  Anyone know what this means?  It does not appear in