A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: help me with duplicating movie clips

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

    help me with duplicating movie clips

    I need help with creating multiple copies(3) of a movie clip. here's the actionscript i use to make one copy of it:

    mc3.duplicateMovieClip("newclip"+3,level);

    // set a random position
    _root["newclip"+level]._x = int(Math.random()*550);
    _root["newclip"+level]._y = int(Math.random()*400);

    // increase level
    level++;
    }

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    mc3.duplicateMovieClip("newclip"+3,level);

    Not sure it matters. but aren't you nameing them all the same?
    try
    mc3.duplicateMovieClip("newclip"+level.toString(), level);

    Also instead of level at the end you can use

    getNextHighestDepth()

  3. #3
    Junior Member
    Join Date
    Apr 2006
    Posts
    8
    i got it now

    Thanks a lot

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