• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ToolTip help

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a drop down menu; at least in the sense that it expands and closes when clicked, but that's all it does. What I've been trying to get it to do for the past three days, is for a tooltip to appear, as the mouse passes over each entry; providing an explanation as to how to remove the item from carpet. (I'm in the carpet cleaning business and it's for my website.) Below is what I have so far; as it appears in the Adobe Flash action panel. Please keep in mind if responding, that I'm new at this. Consider me knowing nothing.

onClipEvent (initialize)
{
editable = false;
labels = [];
labels[0] = "- Beer";
labels[1] = "- Blood";
labels[2] = "- Butter";
labels[3] = "- Candle Wax";
labels[4] = "- Catsup";
labels[5] = "- Chewing Gum";
labels[6] = "- Chocolate";
labels[7] = "- Cocktails";
labels[8] = "- Coffee";
labels[9] = "- Cough Syrup";
labels[10] = "- Crayons";
labels[11] = "- Egg(raw)";
labels[12] = "- Food Coloring";
labels[13] = "- Furniture Stain";
labels[14] = "- Fruit Punch";
labels[15] = "- Glue(School)";
labels[16] = "- Glue(PVC)";
labels[17] = "- Grass";
labels[18] = "- Gravy";
labels[19] = "- Ice Cream";
labels[20] = "- Ink";
labels[21] = "- Lipstick";
labels[22] = "- Mercurochrome/Merthiolate";
labels[23] = "- Mildew";
labels[24] = "- Milk";
labels[25] = "- Mud";
labels[26] = "- Mustard";
labels[27] = "- Nail Polish";
labels[28] = "- Oil/Grease";
labels[29] = "- Paint(Oil Based)";
labels[30] = "- Paint(water Based)";
labels[31] = "- Preserves(Jam/Jelly)";
labels[32] = "- Rubber Cement";
labels[33] = "- Rust";
labels[34] = "- Shoe Polish";
labels[35] = "- Soft Drinks";
labels[36] = "- Soot";
labels[37] = "- Tar/Asphalt";
labels[38] = "- Toothpaste";
labels[39] = "- Urine";
labels[40] = "- Vomit";
labels[41] = "- Wine";
rowCount = 47;
changeHandler = "";
}
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you need to set the onmouseover event in the element you whant to show the tooltip. It would be easier if you have html elements to display the drop down menu.
 
Michael Lange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
could you give me an example using one of the lines of code already there? And why would HTML be easier? I don't understand. I've been working from a template, and there already existed, 3 lines of code in place of what you see there; (which I gather is CSS.)I simply followed suit.
[ December 28, 2007: Message edited by: Michael ]
 
andres matus
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's easier if you do it with html and javascript because you can put each element the...onmousover="" event to do whatever you want. for example

make a list...

<ul class="alignment">
<li onnmousover="tooltip()" > Element 1 </li>
<li onnmousover="tooltip()" > Element 2 </li>
<li onnmousover="tooltip()" > Element 3 </li>
</ul>

change the onnmousover for the correct event!!!

and with css you can make that list to be vertical or horizontal
if you need to be a tree and make it collapse then you need to implement it with javascript.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Michael", please check your private messages.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This isn't perhaps the best site to be asking Flash questions on, but someone may have relevant experience.

Why you originally posted this in the Struts forum is a mystery.
 
Michael Lange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's easier if you do it with html and javascript because you can put each element the...onmousover="" event to do whatever you want. for example

make a list...

<ul class="alignment">
<li onnmousover="tooltip()" > Element 1 </li>
<li onnmousover="tooltip()" > Element 2 </li>
<li onnmousover="tooltip()" > Element 3 </li>
</ul>

change the onnmousover for the correct event!!!

and with css you can make that list to be vertical or horizontal
if you need to be a tree and make it collapse then you need to implement it with javascript.

--------------------

Thanks for responding Andres,

I'm naturally, still confused. If I want the tool tip to appear on mouse over (which I do,)...then shouldn't I leave it as you've illustrated?
(<li onnmousover="tooltip()" > Element 1 </li>

I'm also uncertain as to what "element" is. Should I be writing it all as, for example...

<li makes you drunk if you drink it="tooltip()" > Beer </li>

if this is correct, than does this mean that I should place the "onMouseOver" event in place of the "onClipEvent (initialize)" at the top of the code?

If so, than how will the browser know to make a tooltip to appear as the cursors passes over each entry? (beer, blood, butter, etc.)
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I'm confused. Are you using Flash or HTML/JavaScript? You seem to be confusing the two.

<li makes you drunk if you drink it="tooltip()" > Beer </li>

if this is correct


Not even close.

Before you attempt something as advanced as custom tooltips (is there any reason that you're not using the built-in title attribute?) you really need to understand basic HTML syntax.

I'd suggest running through an HTML tutorial before proceeding any further.
[ December 28, 2007: Message edited by: Bear Bibeault ]
 
Michael Lange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't be any more confused than I am
When I typed...<li makes you drunk if you drink it="tooltip()" > Beer </li>...
I was merely trying to see if I understood Andre correctly. Now I'm not even going to try to pretend that I understand this whole HTML/Java script, css thing; for the more I read, the more confused I seem to get.

With that being said, it appears to even me, in retrospect... that if in Andres example ( <li onnmousover="tooltip()" > Element 1 </li> ,) if I replace
the "onmouseover" event, with "makes you drunk if you drink it"...that even if no errors were generated...that it wouldn't be visible in a tooltip.

To answer one question you asked...I'm using flash. The code that I entered in the action panel and for the drop down list, was me building upon a few lines that were already there. I didn't know what type of code it was (html/javascript or css so, in an attempt to even begin to put a name with what I was seeing, I compared it to what I found on the net; determining then, that it was css. I'm still not sure if it is. Only thing I know is that, I have this image in my head of what I'd like to do, and thought prior to asking for help, that I'd find the answer through some reading; some tutorials and some fumbling. Would be great If I could find a video tutorial that outlines exactly what I want, as it applies to what I'm trying to do. A tutorial on placing tooltips over buttons, only confused me more, and I've Googled the heck out of "Creating tooltips for a dropdown list in Flash cs3"; which is how I think I ended up here .

You asked also..."Is there any reason that you're not using the built-in title attribute?" I didn't know it existed; let alone know that I needed to refer to is as a means to accomplish the task.

Thank you; in any event, for taking an interest. Any suggestions, words of wisdom or assistance you can offer...will surely be appreciated. Too bad there's no option to attach a file here, so you can see what I'm trying to accomplish. As if you needed it
[ December 28, 2007: Message edited by: Michael Lange ]
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using Flash, to be honest, I think you need to find a forum that specializes in Flash help. Here, we seem to be getting bogged down in where the HTML stops and the Flash begins.

May I ask why you are using Flash in the first place?
 
Michael Lange
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm Using Flash because I found a Flash Template that I like and the only means I could see of editing it was Flash. Had I known then, as to how difficult it would be, to do what I want to do, I might never have begun it. Now I've invested 2 weeks in it, and don't want to squash it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic