# Dragging and onRelease

**URL:** https://forum.kirupa.com/t/dragging-and-onrelease/271515
**Category:** Uncategorized
**Created:** [September 24, 2008, 12:19am UTC](https://forum.kirupa.com/t/dragging-and-onrelease/271515 "2008-09-24T00:19:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mleep](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mleep](https://forum.kirupa.com/u/mleep)
#### Post date: [September 24, 2008, 12:19am UTC](https://forum.kirupa.com/t/dragging-and-onrelease/271515/1 "2008-09-24T00:19:52Z")

</div>

I’ve got some nested movieclips

```auto
_root.home.iconHolder.icon

```

I’m trying to be able to drag the parent movieclip

```auto
_root.home.onPress = function( ) {
	startDrag( _root.home );
}
_root.home.onRelease = function() {
	_root.home.stopDrag( );
}

```

But also be able to “click” on the icon movieclip.

```auto
_root.home.iconHolder.icon.onRelease = function() {
	trace ( "Icon clicked" );
}

```

I’ve only been able to get one or the other to work. How do I get both to function?
