dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: movieclip wont play until other movieclip is done

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    7

    movieclip wont play until other movieclip is done

    i've seen this done, but i cant get it to work myself.

    i have three movieclips on the stage (mc1, mc2, mc3) and their respective buttons (butt1, butt2, butt3).

    if a user were to click butt2, i want mc2 to play. however, if the user were to then click say, butt1, i want mc2 to play out (outro?) and return home and THEN mc1 to play. likewise for butt3/mc3, and so on.

    any help is appreciated.

  2. #2
    Senior Member sharma's Avatar
    Join Date
    Oct 2004
    Location
    Canadia
    Posts
    1,017
    use variables
    movie1on = false;
    movie2on = false;
    movie3on = false;

    on the second frame of each move clip
    movie1on = true;
    (change the number depending on which movieclip it is)
    on the last frame of the movie clip
    movie1on = false;

    then put an if/else statment asking to check the play state of the mc's and if any are set to true, nothing will play.
    what the hell's a motion tween?

  3. #3
    Advance Motion Management
    Join Date
    Mar 2006
    Location
    India
    Posts
    84
    3 movie clips
    Instance names a, b, c
    the second two move clip have stop action on the first frame

    At the end of first movieClip

    tellTarget(_root.b){
    gotoAndPlay(2);
    }// I hope its gonna work

    If this dosent work replace with _level0.tellTarget(_root.b)...


    --
    Vini
    Its in my Blood, B+



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