-
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.
:$
-
try to use _xmouse and _ymouse to determine where the mouse currently is then make the duplicate have it center in that position
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|