-
duplicate MC in flash
I got a file with 13 dragable MC's. I got 50 targets where you can drop any of those MC's. Each MC' represent a goal you want to achive in life (travel for example) and the 50 targets represent a certain time in life (years). there is 5 targets per year and 10 years.
So lets say I would like to travel 5 times a year the next 10 years. Then the MC that represent travel needs to be draged down to the 50 diffrent targets. So what I need is for that MC to Duplicate when selected and draged away from it's orginal possition. Does that make sence? How do I do that?
this is the code I haVe on the dragabel MC (sort version with 4 targets):
on (press) {
startDrag(this);
this.swapDepths(100);
}
on (release) {
stopDrag();
if (this._droptarget=="/target1") {
setProperty(this, _x, 22.0);
setProperty(this, _y, 126.0);
}else {
if (this._droptarget=="/target2") {
setProperty(this, _x, 45.9);
setProperty(this, _y, 126.0);
}else {
if (this._droptarget=="/target3") {
setProperty(this, _x, 69.9);
setProperty(this, _y, 126.0);
}else {
if (this._droptarget=="/target4") {
setProperty(this, _x, 94.0);
setProperty(this, _y, 126.0);
}else {
setProperty(this, _x, 22.0);
setProperty(this, _y, 30.0);
}
}
}
}
}
thanks very much for any help you might offer.