# Flash MX V6 multiple draggable objects problem

**URL:** <https://forum.kirupa.com/t/flash-mx-v6-multiple-draggable-objects-problem/308715>\
**Category:** flash\
**Created:** [April 28, 2010, 6:57pm UTC](https://forum.kirupa.com/t/flash-mx-v6-multiple-draggable-objects-problem/308715 "2010-04-28T18:57:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bellasdaddy666](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bellasdaddy666](https://forum.kirupa.com/u/bellasdaddy666)\
**Post date:** [April 28, 2010, 6:57pm UTC](https://forum.kirupa.com/t/flash-mx-v6-multiple-draggable-objects-problem/308715/1 "2010-04-28T18:57:02Z")

</div>

Hi,

I simply wanted to have a bunch of stickers to be placed on a shoe. Everything worked fine when all I had was one sticker, now that I have added another I’m getting a problem where the combination of the two (how many duplicated) is totaling too quick.

I set a count, duplicate movie upon click. It becomes like, smiley\_mc1.  
The next time I click the same sticker it gets increased so it is smiley\_mc2.  
Ad nauseum. Except, that’s not what’s happening. I have 11 instances of each that can be dragged and dropped but the flash is treating it as a total of 11, not 11 of each.

I know there has to be a easier way to do this, but right now I’m concerned with why I’m only getting 11 goes instead of 11 goes at each symbol(movieclip)

Code is below:

```auto

_root.smiley_mc.onPress = function () {
i = i + 1; duplicateMovieClip (_root.smiley_mc, "smiley_mc" + i, i);
}

_root.soccerball_mc.onPress = function () {
j = j + 1; duplicateMovieClip (_root.soccerball_mc, "soccerball_mc" + j, j);
}

_root.smiley_mc1.onPress = function () {
startDrag(this);
_root.smiley_mc1._rotation = _root.smiley_mc1._rotation + 10;
_root.smiley_mc1.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc2.onPress = function () {
startDrag(this);
_root.smiley_mc2._rotation = _root.smiley_mc2._rotation + 10;
_root.smiley_mc2.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc3.onPress = function () {
startDrag(this);
_root.smiley_mc3._rotation = _root.smiley_mc3._rotation + 10;
_root.smiley_mc3.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc4.onPress = function () {
startDrag(this);
_root.smiley_mc4._rotation = _root.smiley_mc4._rotation + 10;
_root.smiley_mc4.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc5.onPress = function () {
startDrag(this);
_root.smiley_mc5._rotation = _root.smiley_mc5._rotation + 10;
_root.smiley_mc5.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc6.onPress = function () {
startDrag(this);
_root.smiley_mc6._rotation = _root.smiley_mc6._rotation + 10;
_root.smiley_mc6.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc7.onPress = function () {
startDrag(this);
_root.smiley_mc7._rotation = _root.smiley_mc7._rotation + 10;
_root.smiley_mc7.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc8.onPress = function () {
startDrag(this);
_root.smiley_mc8._rotation = _root.smiley_mc8._rotation + 10;
_root.smiley_mc8.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc9.onPress = function () {
startDrag(this);
_root.smiley_mc9._rotation = _root.smiley_mc9._rotation + 10;
_root.smiley_mc9.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc10.onPress = function () {
startDrag(this);
_root.smiley_mc10._rotation = _root.smiley_mc10._rotation + 10;
_root.smiley_mc10.onRelease = function () {
stopDrag();
}
}

_root.smiley_mc11.onPress = function () {
startDrag(this);
_root.smiley_mc11._rotation = _root.smiley_mc11._rotation + 10;
_root.smiley_mc11.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc1.onPress = function () {
startDrag(this);
_root.soccerball_mc1._rotation = _root.soccerball_mc1._rotation + 10;
_root.soccerball_mc1.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc2.onPress = function () {
startDrag(this);
_root.soccerball_mc2._rotation = _root.soccerball_mc2._rotation + 10;
_root.soccerball_mc2.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc3.onPress = function () {
startDrag(this);
_root.soccerball_mc3._rotation = _root.soccerball_mc3._rotation + 10;
_root.soccerball_mc3.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc4.onPress = function () {
startDrag(this);
_root.soccerball_mc4._rotation = _root.soccerball_mc4._rotation + 10;
_root.soccerball_mc4.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc5.onPress = function () {
startDrag(this);
_root.soccerball_mc5._rotation = _root.soccerball_mc5._rotation + 10;
_root.soccerball_mc5.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc6.onPress = function () {
startDrag(this);
_root.soccerball_mc6._rotation = _root.soccerball_mc6._rotation + 10;
_root.soccerball_mc6.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc7.onPress = function () {
startDrag(this);
_root.soccerball_mc7._rotation = _root.soccerball_mc7._rotation + 10;
_root.soccerball_mc7.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc8.onPress = function () {
startDrag(this);
_root.soccerball_mc8._rotation = _root.soccerball_mc8._rotation + 10;
_root.soccerball_mc8.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc9.onPress = function () {
startDrag(this);
_root.soccerball_mc9._rotation = _root.soccerball_mc9._rotation + 10;
_root.soccerball_mc9.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc10.onPress = function () {
startDrag(this);
_root.soccerball_mc10._rotation = _root.soccerball_mc10._rotation + 10;
_root.soccerball_mc10.onRelease = function () {
stopDrag();
}
}

_root.soccerball_mc11.onPress = function () {
startDrag(this);
_root.soccerball_mc11._rotation = _root.soccerball_mc11._rotation + 10;
_root.soccerball_mc11.onRelease = function () {
stopDrag();
}
}

```
