A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how did they? Macromedia buttons at this link

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    14

    resolved

    http://www.macromedia.com/support/fo...eview_release/

    Hello, check out that link. Do you know how the buttons on the top of the page are scripted (right of the Macromedia logo)? Upon rollover, they go from gray to blue and will fade back to gray when you rollout.

    I like the way it fades in and out, based on the time of the rollover. It looks much more fluid that the typical on/off or start movie command.

    Have you seen a tutorial or movie out there?

    Thank you,

    +nvp

  2. #2
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    Easy to do.

    Just make an MC, that stops at frame 1, then animates for a few frames (the fade on effect) and stops, then animates for a few frames (the fade out effect) and stops.

    Just use a transparent butten to play the sequences/frames of that MC, using the tellTarget command.

    Rough example of transparent button script:

    on (rollover);
    tellTarget (_root.MC instance name);
    goToAndPlay (frame);


    ::bluemoth::

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Posts
    14

    resolved thanks

    Sounds good, but...

    Check out how the movie/button knows when you rollout. It does not take you to that second part of the movie, but start to fade out based on the time you rolled out. It's a litle more interactive than roll over and out commands. Any ideas?

    +nvp

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    probably there is a movieclip that gets colored.
    When you mouse over, a direction var is set to increase,
    when you leave, it is set to decrease.
    With an enterframe or a frame action in the mc, a variable is added to or subtracted from until it reaches its maximum or minimum value
    this variable is used to control an alpha value or a color mix
    The result: when the button color is just in between when you mouse out, it will change from the color where it left off

    Musicman

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