# How to rotating 3D model according to mouse movement

**URL:** https://forum.kirupa.com/t/how-to-rotating-3d-model-according-to-mouse-movement/313611
**Category:** flash
**Created:** [September 4, 2010, 9:52am UTC](https://forum.kirupa.com/t/how-to-rotating-3d-model-according-to-mouse-movement/313611 "2010-09-04T09:52:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![snmbala](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@snmbala](https://forum.kirupa.com/u/snmbala)
#### Post date: [September 4, 2010, 9:52am UTC](https://forum.kirupa.com/t/how-to-rotating-3d-model-according-to-mouse-movement/313611/1 "2010-09-04T09:52:28Z")

</div>

Hi All,

I’m new to actionscript 3. Currently i stuck with a project in which a 3d model has to rotate according to mouse movement (at least 180’). if i click at any point of the model a popup should come which should store my input data with appropriate location where i clicked(x, y and z). I browse through the net and came to know about swift 3d, papervision etc.

Please help me out how to start with this project.

1. How can i import a 3d model into flash
2. How to make it move according to the mouse moment
3. How to calculate the x, y , z position of the 3d model on mouse click.

Regards,  
Bala
