# DRAG and DROP movieclips!

**URL:** <https://forum.kirupa.com/t/drag-and-drop-movieclips/237064>\
**Category:** flash\
**Created:** [August 27, 2007, 1:38am UTC](https://forum.kirupa.com/t/drag-and-drop-movieclips/237064 "2007-08-27T01:38:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoney\_kun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stoney_kun/32/3395_2.png) [@stoney\_kun](https://forum.kirupa.com/u/stoney_kun)\
**Post date:** [August 27, 2007, 1:38am UTC](https://forum.kirupa.com/t/drag-and-drop-movieclips/237064/1 "2007-08-27T01:38:24Z")

</div>

Can someone please help me! I have a mc inside an mc that has code attached to drag the outer mc… here is a diagram:  
mc COOL STUFF  
|–mc RED TAB (code is attached to this to drag the COOL STUFF mc)

![](http://i17.tinypic.com/4peh4t3.jpg)

I can’t get the drag and drop code to work! I am referencing a mc that is higher in the heirarchy, is there a problem with this?

Here is the code attached to mc RED TAB:

```auto

on(press) {
	trace("hit");
	startDrag("_root.mcExtra");
	_root.zIndex++;
	_root.mcExtra.swapDepths(_root.zIndex);
}
on(release){
	stopDrag();
}

```
