A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need help Controlling multiple Movieclips

  1. #1
    Junior Member
    Join Date
    Mar 2018
    Posts
    2

    Exclamation Need help Controlling multiple Movieclips

    Hi guys,
    So I'm getting back into flash after 13 years out - attached is my .fla file. There are 6 buttons in there - ive got 2 working with
    script but as soon as i add the 3rd button the script doesn't work. So basically is there anyone out there who can open this file
    and put me out of my misery please... this is what I'm trying to script -

    When a button is pressed tell the other button MC to finish its animation and play the new buttons MC.

    Im still thinking in Actionscript 1/2 and ASC3 is all new to me,

    thanks guys

    Matt
    Attached Files Attached Files

  2. #2
    i'm the Best of doing nothing
    Join Date
    Apr 2019
    Posts
    15
    at those kind of jobs, i highly recommend to you using MovieClips instead of buttons, that way you are able to use Arrays

    if u want to make ur life easier, you should use arrays instead of manually add those stuff into your project.

    with my code, all you need to do now is add 1 command to implement new buttons:
    Code:
    addBtnAndMovie(<Button MovieClip>, <Work MovieClip>);
    as you can see in your attachment.

    feel free to scool the code and try to understand it. it shouldn't be too complicated once you understand how array works.
    Attached Files Attached Files

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