A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: 1 button/several actions

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Lisboa-Portugal
    Posts
    85

    1 button/several actions

    Your patience please.

    An mc_x with a timeline with 2 frame labels.

    Each label contains 4 mc’s (with 2 frames each one) and 4 buttons.

    [_________label-1__________]--[__________label-2________]
    [mc01]-[mc02]-[mc03]-[mc04]--[mc01]-[mc02]-[mc03]-[mc04]
    [bt01]--[bt02]--[bt03]--[bt04]--[bt01]--[bt02]--[bt03]--[bt04]

    In the main timeline:
    button_1 goto mc_x label_1
    button_2 goto mc_x label_2

    Once inside mc_x, i want that if bt01 is pressed mc01 goto frame 2, and mc02, mc03 and mc04 goto or remain in frame 1, and when bt2 is pressed mc02 goto frame 2 and all the others goto frame 1 or remain there, and ...

    What i have done so far is:

    bt01 on press
    mc01 goto frame 2
    mc02 goto frame 1
    mc03 goto frame 1
    mc04 goto frame 1

    and identical for all the other buttons,but most probably this is not correct.

    Can anyone help me please?

    Thanks a lot.

  2. #2
    The Ancient
    Join Date
    Mar 2000
    Location
    Michigan, USA
    Posts
    213
    why not just...
    code:
    on(release){
    mc01.gotoAndPlay(2);
    mc02.gotoAndPlay(1);
    mc03.gotoAndPlay(1);
    mc04.gotoAndPlay(1);
    }

    on(release){
    mc01.gotoAndPlay(1);
    mc02.gotoAndPlay(2);
    mc03.gotoAndPlay(1);
    mc04.gotoAndPlay(1);
    }

    ... and so on?
    jahasloth

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Lisboa-Portugal
    Posts
    85
    Thanks for your reply.

    Actually I was wondering if there is a way to tell an MC you do this, and at the same time all the “others” in this level do anything else. Using variables or whatever.

    Does this make any sense to you?

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