Skip navigation
Currently Being Moderated

How do I get an additional text on rollover?

Apr 18, 2012 9:43 AM

Hi guys,

 

So I'm looking to get an extra text to show when hovering over a thumbnail.

 

Situation: I have a thumbnail linking to a page (frame in timeline) with a YouTube video on it. So I want the title of the video to show up under the thumbnail upon rollover.

What I use: Flash CS5 & Actionscript 3

 

Anyone know how to get this done?

 
Replies
  • Currently Being Moderated
    Apr 18, 2012 1:03 PM   in reply to LaurensNL

    Assign a ROLL_OVER MouseEvent listener and have its event handler function display text in wahetver textfield you intend to use for it.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 12:19 PM   in reply to LaurensNL

    What the trace does is tells you that the mouseover occured. I have no idea why they add that, but you can remove it all.  In place of it you could put the code to assign the text to the textfield...   yourtextfield.text = "whatever text you want to show";

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 12:59 PM   in reply to Ned Murphy

    You seem to desire a simple GUI method of doing this. Unfortunately that's not the case.

     

    You need to associate and extract the information from the object you roll over in order to replace it.

     

    In other words, when you see a Green Saleen Mustang, your eyeballs extract "Green" by looking at it. But that's only because the owner painted it like that.

     

    You need to find a way to associate the infromation with the object that it belongs to. So you need to associate the information with the image/video that is rolled over.

     

    This doesn't tell you how to do it but do you understand so far?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 4:30 PM   in reply to LaurensNL

    Errors will often stop any processing from working properly.  Since the rollover shouldn't have anything to do with a URL, you'll have to figure out why some file is not being loaded or whatever you are trying to do that involves an external file.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2012 4:14 AM   in reply to LaurensNL

    It is highly unlikely that the rollover is causing a URL error if the rollover is only trying to write to a textfield.  URL errors normally involve mis-targeting a file.  If you show the code you used for the rollover it will be easier to tell if it could be related..

     

    If you don't have an internet connection and the functionality of your file depends on it, you should comment out the code that causes those errors so that you do not have them interfering with things working.  URL errors will stop a file from working.  Also, URL errors usually erupt from loading files, which does not necessitate having an internet connection, just a correct path targeting the files.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 12:17 PM   in reply to LaurensNL

    Try all of the things you just asked about and you might end up with what you want.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points