A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: keep button down

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    12

    keep button down

    hi!
    does anyone know how to keep a button in it's "down" state when it's pressed...

    so people can see where they are?
    or is there a way to change it's appearance when it's down?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Put the button in a 2 frames mc, with stop(); actions on both frames. When the button is pressed, send the playhead to the second frame, where the button only has it's down state appearance.
    Send it back to the first frame, when another button is pressed.

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Posts
    12
    ok...but how do I tell it to go to the 1st framehead when another button is pressed?

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    When you send it to frame 2, also set a variable...

    _global.currentDown = _level0.but1_mc;
    //indicating that the the but1_mc is presently on it's down state...

    Then on all buttons(including button 1), start the script with...

    _global.currentDown.prevFrame();

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