OK, I’ve tried the search but none of them really answered my question.
Let’s say I have a movieclip with a button in it somewhere on my stage named “ball”.
I want to create a duplicate of that movieclip when I click on it and be able to drag it somewhere else. But the thing is…the first “ball” should always stay in position and not be able to move or anything. The newly created movieclip may not be able to create duplicates, it only has drag/drop functionality.
To delete the created “ball” you have to drop it on the original “ball”.
This is the code I use so far:
[AS]
on (press) {
i = i + 1;
duplicateMovieClip (_root.ball, “ball” + i, i);
startDrag (this);
}
on (release) {
stopDrag ();
}
[/AS]
What is does now is:
Create a duplicate of the mc. Dragging is no problem, I’m also able to drop it. But when I click the duplicate, it delete the original, create a duplicate, and drag it! And the release doesn’t work either. To drop it you have to click the same mc again.
What is wrong?
Can anybody help me?
And am I making any sense? :beam: