A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: someone help with duplicate movie clips

  1. #1
    HI i have 2 swf's,

    one where i create duplicate movie clips on click of a button, then i have another swf which is loaded on click of another button in the first swf, now the problem is that everytime i create say 10 duplicate clips, and when i click the button to load the next swf, the 10 clips are carried over to the next swf also, though they are not visible, it is clear that they have come there, since those movie clips are draggable.

    Please let me know how to avoid or delete multiple movie clips

    thanks in advance

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    165
    Have you tried creating your duplicate movie clips on different levels from your main swf?

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    467
    don't really understand everything you say, but I can still tell you how to delete multiple mc's.

    you've created them using a script like this one.
    for (i=1,i<=10;i++) {
    myMovieClip.duplicateMovieClip("myMovieClip"+i,i);
    }

    so you can delete them by using
    for (i=1,i<=10,i++) {
    removeMovieClip("myMovieClip"+i);
    }

    just replace myMovieClip with the real mc's name.

    ^1letser

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