A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [F8] duplicate movieclip question

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    7

    [F8] duplicate movieclip question

    heya all,
    question..

    is it possible to duplicate a moviclip, wich then duplicates itself with the same variables as the first movieclip.

    For example
    i want a square to be duplicated with a _x factor = +2 and _y = +2
    and a _rotation of 5 .
    The i would like the duplicated movieclip to do the same.

    So creating a spiral of movieclips

    This is my current code, now i still have to add the displacement for the _x position and the _y position..

    onClipEvent (enterFrame) {
    // initialize variable at 0
    i = 0;
    do {
    // make copies of the movie clip
    duplicateMovieClip (_root.vlak, "vlak" + i, i);
    // rotate the copies i degrees
    setProperty (eval("_root.vlak" + i), _rotation, i);
    // increment the counter by 5
    i = i+5;
    // check the condition
    } while (i<361);
    // make the original movie clip invisible
    vlak._visible = 0;
    }

    thanx in advance
    Last edited by raoul petrus; 07-30-2007 at 09:42 AM.

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