# \[FMX\] Unable to select movie clip

**URL:** <https://forum.kirupa.com/t/fmx-unable-to-select-movie-clip/211685>\
**Category:** flash\
**Created:** [January 4, 2007, 6:34am UTC](https://forum.kirupa.com/t/fmx-unable-to-select-movie-clip/211685 "2007-01-04T06:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![picasso](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@picasso](https://forum.kirupa.com/u/picasso)\
**Post date:** [January 4, 2007, 6:34am UTC](https://forum.kirupa.com/t/fmx-unable-to-select-movie-clip/211685/1 "2007-01-04T06:34:33Z")

</div>

i have created a project but was unable to select the previous movie clip if i duplicate it?this is my project link [http://www.picassocoffee.com/wireclick.swfthis](http://www.picassocoffee.com/wireclick.swfthis) is my code:var mySelection = “”;//Global declarationvar totalmc = 0;wire.onPress = function (){ this.createEmptyMovieClip([“mc”+totalmc], this.getNextHighestDepth()); //Create a newMovieClip with variable name “mc1"” duplicate(mc); //trace([“mc”+totalmc]); mc = attachMovie(“idwire”, [“wire”+totalmc++], this.getNextHighestDepth()); //store the Movie into mc1 by attaching mc.\_x = 273;//(Stage.width - mc1.\_width)/2; mc.\_y = 196.5;//(Stage.height - mc1.\_height)/2; //setting the corrdinates for x and y axis dragging(mc); //calling the dragging function //trace(mc1.\_x +","+ mc1.\_y); //trace(mc1.\_width +","+ mc1.\_height); }//Function for draggingfunction dragging(mc){ mc.onPress = function() { this.startDrag(true); mySelection = this; } mc.onRelease = mc.onReleaseOutside = function() { stopDrag(); }}//Function for getting nxt highest depthfunction getNextHighestDepth(mc){ var a = 0; a++; return a;}function duplicate(mc) { mc.duplicateMovieClip ([“mc”+i], i); i++; //trace(“mc”+i); //trace(x); }//Btn function for flippingflip.onRelease = function() { mySelection.\_rotation += 10; }//Btn function for deletedel.onRelease = function() { mySelection.removeMovieClip();}
