A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: duplicateMovieClip

  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    86

    duplicateMovieClip

    I'm trying to duplicate a Movie Clip when a movie is clicked on a screen.
    so i'm also trying to combine 2 events , the following the mouse/cursor and duplicate when the mouse is clicked

    This is what i havew so far-

    onClipEvent (load) {
    Mouse.hide();
    startDrag(this, true);
    }
    on (release) {
    amount = 1;
    while (amount>0) {
    duplicateMovieClip (_root.mark, "mc"+i, i);
    setProperty ("mc"+i, _xscale, random(250));
    i++;
    amount--;
    }
    }

    Its not right, what I'm trying to do is duplicate an movie where the mouxe is clicked.
    Last edited by Yellowdindi; 12-20-2003 at 06:14 AM.
    :$

  2. #2
    Member
    Join Date
    Sep 2003
    Location
    Jordan
    Posts
    32
    try to use _xmouse and _ymouse to determine where the mouse currently is then make the duplicate have it center in that position

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    86
    This works
    on(press){
    i = 1;
    duplicateMovieClip("_root.mark","mark"add i,i);
    setProperty("_root.mark"add i,_x,_root.mrH._x);
    setProperty("_root.mark"add i,_y,_root.mrH._y);

    }//end onPress

    I would like to have it continaully re draw the movie to (like a paintbrush tool)while the _root.mrH is being dragged around the stage

    I need some kind of while loop mouse is down
    Last edited by Yellowdindi; 12-20-2003 at 11:58 PM.
    :$

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