A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Multiple button states...

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Location
    Omaha, NE
    Posts
    15

    Multiple button states...

    I need some buttons to change and stay in a certain state once clicked. Any ideas?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Button in a 2 frame movie clip with stop actions on both frames. Initial state on the first frame, clicked state on the second. Once clicked the movie clip is move to the second frame.

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    Omaha, NE
    Posts
    15
    Hey, thanks. But what about having 25-30 buttons? (see below) Would I be need to name each MC instance differently, then have the buttons tell each instance to change?

    example... (just check out "dogs" section

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Depends on your setup? Can you attach a mockup .fla with just 2 of those buttons? Zipped up and in MX only format.

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Location
    Omaha, NE
    Posts
    15
    here you go.
    Attached Files Attached Files

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    This replicates the dogs & kids buttons in your above example?

  7. #7
    Junior Member
    Join Date
    Oct 2003
    Location
    Omaha, NE
    Posts
    15
    Yes, it's the same little button in each section. Just want to make it show which images have been clicked on.

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You would need at least some 33 instances (That's the max you now have in one of the sections), and my guess is that the same instances could be re-used in each section. Only 2 buttons though. You can name the instances and control them with your buttons, or I've found a way, without naming them, by inserting code on the clip itself. Of course each button in each instance has to have the appropriate script to target the appropriate picture... In a few words, a lot of work!
    Might be easier to just attach an "X" marked movie clip over each button, when each one has been pressed once. Still a lot of coding though!

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