# Object doesn't drag if Container MovieClip is rotated to a 3D Environment

**URL:** <https://forum.kirupa.com/t/object-doesnt-drag-if-container-movieclip-is-rotated-to-a-3d-environment/305017>\
**Category:** flash\
**Created:** [February 18, 2010, 1:23am UTC](https://forum.kirupa.com/t/object-doesnt-drag-if-container-movieclip-is-rotated-to-a-3d-environment/305017 "2010-02-18T01:23:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcabaco](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@tcabaco](https://forum.kirupa.com/u/tcabaco)\
**Post date:** [February 18, 2010, 1:23am UTC](https://forum.kirupa.com/t/object-doesnt-drag-if-container-movieclip-is-rotated-to-a-3d-environment/305017/1 "2010-02-18T01:23:50Z")

</div>

Hey

I have this enter\_frame listener to make my Container MovieClip rotate on a 3D environment in relation to the position of the mouse.

```php

addEventListener( Event.ENTER_FRAME, loop );

private function loop( e:Event ):void
{
	var distx:Number = mouseX / stage.stageWidth;
	var disty:Number = mouseY / stage.stageHeight;
	TweenLite.to( ctt, 2, {
				rotationY:(-30 + (60*distx)),
				rotationX:(30 - (60*disty)),
				ease:Expo.easeOut
				} );
}

```

One of the MovieClips I load into that “ctt” container has some scrollable content. I’ve traced both the CLICK and MOUSE\_DOWN events on the Dragger of the scrollbar and it’s active, it receives the click and mouse\_down events. The problem is that it doesn’t drag.

I know that the scrollbar works because if I remove the loop enter\_frame event I showed before it works perfectly, it just doesn’t rotate on a 3D environment as I wanted it to.

Any ideas why the dragger doesn’t drag when that ENTER\_FRAME event like that is being used?

Thanks
