A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: movieclip to other movieclip ! ! !

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    50

    movieclip to other movieclip ! ! !

    as title suggest ..... i have placed a movieclip in a scene .... after last key of 1st movieclip, i wanna move to 2nd movieclip ....

    it should continue till all movieclips [not placed in scene] are over ..... & then return to 1st movieclip ...... loop kinda .....


    how can i achieve this ?

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    50
    am using flash mx .......

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    50
    xperts ..... no ans ? ....... ^^

  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    50
    no 1 ......

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    50
    flash xports ..... help plz .....

  6. #6
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    in the last frame of the first movie clip put:
    stop();
    MovieClip2_mc.gotoAndPlay(1);

    Then at the end of MovieClip2_mc, put
    stop();
    MovieClip3_mc.gotoAndPlay(1);

    until you get to the last one, then put:
    stop();
    MovieClip1_mc.gotoAndPlay(1);
    1 Infinite Loop, Cupertino is a portal of Hell.

  7. #7
    Member
    Join Date
    Jan 2007
    Posts
    50
    @gotoAndCrash ....... thanx 4 reply .... bt not working 4 me .......

    plz take a look @ attachment , a small fla file & do point my mistake ......


    http://board.flashkit.com/board/atta...1&d=1197974239

  8. #8
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    I'd be glad to look at your fla, but it didn't attach properly. Try attaching it again
    1 Infinite Loop, Cupertino is a portal of Hell.

  9. #9
    Member
    Join Date
    Jan 2007
    Posts
    50
    sorry abt that ....... attaching again .......

    & its just a test file .........
    Attached Files Attached Files

  10. #10
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    well, there are a number of ways to do that. So I'll pick the one that I would do & show you.

    1. go into your mc1, & on the last frame type this:
    Code:
    stop();
    _root.attachMovie('mc2','mc2',10,{_x:286,_y:183});
    _root.mc2.gotoAndPlay(1);
    * (make sure that you're typing in the keyframe, & not on the Movie Clip)
    2. go into your mc2, & on the last frame type this:
    Code:
    stop();
    _root.attachMovie('mc1','mc1',10,{_x:286,_y:183});
    _root.mc1.gotoAndPlay(1);
    * (make sure that you're typing in the keyframe, & not on the Movie Clip)
    3. go back to the _root timeline & delete everything on the stage, so that all you have is an empty keyframe.
    4. type this into the empty keyframe:
    Code:
    stop();
    _root.attachMovie('mc1','mc1',10,{_x:286,_y:183});
    _root.mc1.gotoAndPlay(1);
    5. in the library, right-click on mc1, select 'Linkage' from the menu, & then click on 'Export For Action Script', then click 'Ok'. Do the same thing for mc2.
    6. Test the movie.

    Here's the explanation:
    the Linkage/Export For ActionScript makes it so that the Movie Clip can be dynamically loaded from the library & doesn't need to be on the stage.

    _root.attachMovie('mc2','mc2',10,{_x:286,_y:183});
    this attaches the 'Linkaged' Movie Clip from the library. The first parameter inside the () is the linkage ID (what it's called in the library. the second parameter is the new name (I just used the same name). The third parameter is the depth to attach, & the fourth is the _x & _y points to attach the movie to.

    _root.mc2.gotoAndPlay(1);
    this isn't really needed because the Movie Clip will play automatically.
    1 Infinite Loop, Cupertino is a portal of Hell.

  11. #11
    Member
    Join Date
    Jan 2007
    Posts
    50
    @gotoAndCrash ...... thanx a lot ....... ITS WORKING .......

    u solved my problem ........ awesome ........ zillion thanx ........

  12. #12
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    rawk
    1 Infinite Loop, Cupertino is a portal of Hell.

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