A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: When an MC ends?

  1. #1
    BTS2112
    Join Date
    Oct 2005
    Location
    Kansas City
    Posts
    52

    When an MC ends?

    Hello,
    If I've got a movie clip, say 250 frames long, that I've got in frame 1 of my main time line, what code would I need (and where would this code go) if I wanted to play frame 2 of the main time line when the 250 frames of my MC are through?
    Thanks for your help!

  2. #2
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    It doesnt matter how long your movie clip is so long as the stops are in the right place. I have attached a corney sample but you'll get the idea.
    Attached Files Attached Files

  3. #3
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    Youll notice that on the main time line there are only two frames and inside each movie clip there is a different number of frames on each. When you use stops in your actions layer it prevents the movie on the main time line from running while the movie clip inside the movie is doing its thing.

  4. #4
    BTS2112
    Join Date
    Oct 2005
    Location
    Kansas City
    Posts
    52
    Thanks!
    I'm having some trouble opening the file because I'm on a computer with MX 2004 but I'll take a look at it when get to another computer.

  5. #5
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    I can do it in 2004 cause i have that too on my system...If you give me a sec I can redo it in mx2004 and re-send the file

  6. #6
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    I thought I still had mx2004 but i must have uninstalled it when i got studio 8. But if you have access to 8 then you know where the file is. Have a nice day.

  7. #7
    Instructional Designer
    Join Date
    Feb 2005
    Location
    Whidbey Island: north of Seattle, east of Victoria, south of Vancouver
    Posts
    299
    On the last frame of your MC:
    _root.play();

    But if you have only two frames on your main timeline, you will need a stop() on frame 2 or your MC will begin again. :]
    Tomas

  8. #8
    BTS2112
    Join Date
    Oct 2005
    Location
    Kansas City
    Posts
    52
    Thanks! Works great!

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