A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button "up"

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    4
    Can't seem to figure this simple one out on my own.
    (sigh)

    I have a button that is:
    yellow on up-state
    white on roll-over
    white on down-state

    When I click on it, I would like for it to stay white. What do I need to do to make this happen?

  2. #2
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    If you want the button to "toggle" between up and down states when clicked :

    what you will need to do is insert the button into a 2 keyframe movieclip - put a stop(); command in each keyframe.

    The first frame of the Movieclip to contain the button in its normal state , the second will contain the button in it's "clicked state" - you will in effect need to seperate buttons.

    add a play(); command to each of the buttons within the movieclip.

    In this simple form the button will toggle between on and off states.

    In order to get it to address the maintimeline add other commands with _root.

    e.g if you wanted the button to toggle between on and off and get the main movie to play :

    on (press) {
    _root.play();
    play();
    )




  3. #3
    I plan to live forever or die trying
    Join Date
    Mar 2001
    Location
    Perth, W.A
    Posts
    206
    add a stop action to the "on down" state

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