A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Roll over info

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Posts
    225

    Roll over info

    http://www.gangstarronline.com/ on this site underneath the BIO section :: when you roll over the pictures it gives detail on what the picture is :: how is this done? Thanks for any help ::

  2. #2
    ____________
    Join Date
    Sep 2004
    Location
    Hells Kitchen
    Posts
    191
    you make a movie clip that follows the mouse and appears when you roll over a button/image.

    Make a MC with the instance name "followMouse", and put different info on each frame inside it ( I'll write a script as if it has 3 frames with different info on each frame). Make sure they all have stops. Give it this AS:
    code:

    onClipEvent (load) {
    speed = 0;
    _alpha = 0;
    }
    onClipEvent (enterFrame) {
    _x+=_xmouse*speed;
    _y+=_ymouse*speed;
    _root.button1.onRollOver = function() {
    speed = .9;
    _alpha = 100;
    _root.followMouse.gotoAndStop(1);
    }
    _root.button1.onRollOut = function() {
    speed = 0;
    _alpha = 0;
    }
    _root.button2.onRollOver = function() {
    speed = .9;
    _alpha = 100;
    _root.followMouse.gotoAndStop(2);
    }
    _root.button2.onRollOut = function() {
    speed = 0;
    _alpha = 0;
    }
    _root.button3.onRollOver = function() {
    speed = .9;
    _alpha = 100;
    _root.followMouse.gotoAndStop(3);
    }
    _root.button3.onRollOut = function() {
    speed = 0;
    _alpha = 0;
    }
    }



    Then give the buttons instance names: "image1", "image2", and "image3"

    Finally, on the frames action, put:
    code:

    _root.button1.useHandCursor = false;
    _root.button2.useHandCursor = false;
    _root.button3.useHandCursor = false;



    That ul do er!

    P.S. Im not on my computer so I had to write this script without testing it, but it should be fine.
    Last edited by FlashGod.com; 10-05-2004 at 02:34 AM.
    _

    __________________

  3. #3
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    I think you might find the following tutorial on HOVER CAPTIONS useful aswell.

    Regards,

  4. #4
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    FlashGod.com
    I tried to follow the information you had given but I still can not get this thing to work. Can you take a look at the fla I created and see what I'm doing wrong. Thank you

    Thanks Fragg for the link - Im looking more into adding a MC for each roll over instead of words.
    Attached Files Attached Files

  5. #5
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    Ahhhhh I just figured it out - thanks for all the help

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