A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: adding text message to mouse on "over"

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    adding text message to mouse on "over"

    Hi, kind of newbie. I've created a swish banner for a client. Client would like to add "get CoPilot now" tagged to cursor NOT banner when someone mouses OVER the banner (like when you mouseover an app or folder).

    I don't believe this requires converting anything to sprites, but wanted your suggestion. I'm sure it's a dialog field somewhere in swish but can't find it.

    http://www.jamdesigns.com/PCE/Bnrswsh2.html

    Thank you in advance for your help!
    jimbo

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Location
    Buffalo, NY
    Posts
    125
    Hi,

    What you can do is make a sprite with the text you want to display in the tool tip. Place it on wherever you want it to display. Put a remove action in frame 0, and a place action in frame 1, and a stop action in the sprite's frame 0. Then add an action to the banner:

    Code:
    On(Roll Over)
        Tell Target "/spritename"
             Goto Frame 1
    
    Code:
    
    
    On(Roll Out) Tell Target "/spritename" Goto Frame 0
    Ryan

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Maybe a clarification

    It sounds good put perhaps this is an html issue, since the text "get CoPilot now" would be UNDER the mouse cursor and not a graphic in the banner at all.

    I may be wrong (more than likely) but this seems like it would be an html snippet of code, wouldn't it. I mean, when you rollover and hold on a folder in windows, it displays a snippet of text under the mouse. That's what I'm shooting for.

    If I'm wrong just say so...

    Thanks again.
    jimbo

  4. #4
    Senior Member
    Join Date
    Feb 2003
    Location
    Buffalo, NY
    Posts
    125
    Hi,

    You can do this with JavaScript, or with Swish. JavaScript would probably be better, I just though you wanted to do it with Swish. Take a look at this:

    http://www.dynamicdrive.com/dynamicindex5/texttool.htm

    It gives a tutorial.

    Ryan

  5. #5
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    For text tool roll overs in swish.

    convert your object to a button.

    Enter the Over state

    insert your objects (text, shape, image)
    into the over state.

    Frets
    Attached Files Attached Files

  6. #6
    Senior Member Dead Rabbit's Avatar
    Join Date
    Oct 2002
    Location
    Back in Tampa FLA again - and happy!
    Posts
    2,403
    If your client really, really wants the message to be at the cursor, use a mouse follower. These cannot be created in SWiSH alone, however you could make one in Flash and use it as a plugin, or pick up a premade one at www.swish-db.com
    While changing my profile, I accidentally clicked the link that said
    "Add 'Dead Rabbit' to your Ignore List"
    so now I can't talk to myself anymore...

    The Repository -:- The Forum

  7. #7
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Getting Close to solving banner mouseover

    Okay guys, Thanks so much for your assist. Still not there though...

    Frets: Thanks, question though. How do I convert entire animated banner into button? Unsure...

    PC1stAid: Your solution sounds right to me. Went to link -- it looks right but have a problem. They reference in tutorial putting code in an <a> tag, but I have no <img> tag to reference. Where do I plug in this code in relation to their instructions?

    For the most part I think I'm getting there, but I have a tight file k limit (15k) which I already exceed, have very little wiggle room.

    Thanks again for all your help...
    jimbo

  8. #8
    Senior Member Dead Rabbit's Avatar
    Join Date
    Oct 2002
    Location
    Back in Tampa FLA again - and happy!
    Posts
    2,403
    Take a look at Frets' .swi.

    To create a button the size of your entire banner, create a rectangle that size. Convert it to button, then select None for Line style and None for fill. You now have an invisible button on top of your entire animation.
    While changing my profile, I accidentally clicked the link that said
    "Add 'Dead Rabbit' to your Ignore List"
    so now I can't talk to myself anymore...

    The Repository -:- The Forum

  9. #9
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Following Fret's instructions

    Okay, so I've made the bounding rectangle and converted to button. I have the various states for the button but all actions are inactive now. Also my same issue still exists.

    I do not want the text to show up IN banner as Swish banner element (Fret's example) but as the messaging as the mouse rolls over the banner. I see no dialog box for overstate that allows me to do this.

    I've attached Jpeg to further illustrate my issue. You guys are great. I'm sorry for being such a newbie about this. Not worth your time really, but I do appreciate it.
    Attached Images Attached Images
    jimbo

  10. #10
    Chief of Molecules wcoleman's Avatar
    Join Date
    Nov 2000
    Location
    Massachusetts
    Posts
    3,975

  11. #11
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Further Clarification

    In response to your links. No. This is not what I'm shooting for. These banners are going to be served on third party ad banner server. They will not allow banner activity outside the prescribed 468 x 60 banner specs. That's why I've most of the inside swish solutions won't work for me, since all these solutions require further movie real estate.

    From another site I think I got the html code solution but could use help in inserting it.

    This is the string from Swish-db;

    Here's an example:
    <a href="This is the link.html" title="This is the text that's displayed upon mouseover"><img src="http://location.com/image.gif" border="0">

    I think this is right, just don't know where to place it in Swish generated HTML since there's no <image> to speak of. Here is the code generated by Swish:

    <!-- Created by SWiSH - Flash made easy - only $49.95 - www.swishzone.com --53540000"
    codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
    id="Bnrswsh2" width="468" height="60">
    <param name="movie" value="Bnrswsh2.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <embed name="Bnrswsh2" src="Bnrswsh2.swf" quality>
    <body bgcolor="#FFFFFF">
    <center>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-4445
    jimbo

  12. #12
    Chief of Molecules wcoleman's Avatar
    Join Date
    Nov 2000
    Location
    Massachusetts
    Posts
    3,975
    I haven't tried this but what if you placed your swf file in a layer and then placed a transparent rectangle image in a layer stacked on top of the first one, and then applied your html to that transparent image?

    Just a thought,

    Flick

  13. #13
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Further Classification request

    Hi guys,

    Man this is taking way too long to solve. If you refer to my posting "further classification" I list a snippet of code (that looks right) and a jpeg sample of what I'm shooting for.

    The solution looks like an html issue. not Swish, yet since Swish generates the HTML I would like assistance in incorporating that snippet sample into auto-generated html.

    If anyone knows where I should place snippet I would appreciate it.

    I know i'm beating a dead horse here, but there has to be a simple solution out there.
    jimbo

  14. #14
    Junior Member
    Join Date
    Feb 2003
    Location
    la
    Posts
    17

    Finally, this should explain

    Okay, I'm looking to do alt text or "title:" attribute to "tooltip" in overstate in swish banner. See the first paragraph of this link for explanation

    http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip

    If I'm in Actions > On (Roll Over) can this be done in Adding Action > Java Script?

    I don't want this to be an alert, just the alt text that shows up under the cursor.

    Or once again, am I off on another wild goose chase. Please tell me I'm close.
    jimbo

  15. #15
    Senior Member Dead Rabbit's Avatar
    Join Date
    Oct 2002
    Location
    Back in Tampa FLA again - and happy!
    Posts
    2,403
    Because .swf movies allow mouse events, there is no tag (that I'm aware of) that will allow alt text ot title text to work on rollover. If it did we would all go bonkers trying to figure out how do get rid of it so that mouse actions work. Your client is obviously trying to re-create a feature of an animated gif.

    By combining the invisible button (nothing but a hit rectangle) and a mouse follower, you can get the same effect. As I said earlier in this thread, you can find some examples of mouse followers at
    Swish-DB.

    They are made in flash and can be used like a plug-in by "Load Movie" in Swish.
    While changing my profile, I accidentally clicked the link that said
    "Add 'Dead Rabbit' to your Ignore List"
    so now I can't talk to myself anymore...

    The Repository -:- The Forum

  16. #16
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833
    here you can see an example of a mousefollower:

    http://www.swishzone.com/movies.php?...ed&link_id=581
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center