# Turning an object

**URL:** <https://forum.kirupa.com/t/turning-an-object/38094>\
**Category:** flash\
**Created:** [December 18, 2003, 6:23am UTC](https://forum.kirupa.com/t/turning-an-object/38094 "2003-12-18T06:23:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamer](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@dreamer](https://forum.kirupa.com/u/dreamer)\
**Post date:** [December 18, 2003, 6:23am UTC](https://forum.kirupa.com/t/turning-an-object/38094/1 "2003-12-18T06:23:40Z")

</div>

I want to create a effect where there is an object. And when the user clicks and drags around the object will turn. I don’t want the object to move its position but just to turn from a fixed point.

Heres a file you can work from.

Please help me with this effect.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 9:54am UTC](https://forum.kirupa.com/t/turning-an-object/38094/2 "2003-12-21T09:54:11Z")

</div>

> \*Originally posted by dreamer \*  
> \*\*i want an object to spin when the user clicks and drags around the page not using a knob. \*\*

You mean something like this ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 1:17pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/3 "2003-12-21T13:17:10Z")

</div>

umm no… What i want is when a user clicks and drags around ANYWHERE on the i want a symbol to move with it. Also I don’t want it to flip like the one you send.

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 2:45pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/4 "2003-12-21T14:45:59Z")

</div>

that still doesn’t make much sense.

So you want a symbol to be dragged? And rotate when being dragged? Where’s this rotating comign from?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 1:47am UTC](https://forum.kirupa.com/t/turning-an-object/38094/5 "2003-12-22T01:47:39Z")

</div>

> _Originally posted by senocular_  
> \*\*that still doesn’t make much sense.

So you want a symbol to be dragged? And rotate when being dragged? Where’s this rotating comign from?\*\*

Ditto. :sleep:

😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 8:55am UTC](https://forum.kirupa.com/t/turning-an-object/38094/6 "2003-12-22T08:55:06Z")

</div>

Lets say you have a turning object. Its spinning around and it doesn’t move from a set point.

I want to make the exact same thing however, instead of just spinning around in a loop i want it to follow the direct of the mouse, BUT only when the user clicks and drags.

The object must be a symbol which i can update.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 9:36am UTC](https://forum.kirupa.com/t/turning-an-object/38094/7 "2003-12-22T09:36:04Z")

</div>

So you want it to be a movie on your site thats spinning in place and you want it to continue spinning while the user clicks and drags it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 10:33am UTC](https://forum.kirupa.com/t/turning-an-object/38094/8 "2003-12-22T10:33:46Z")

</div>

very close…

I want a movie thats spins ONLY when the user clicks and drags it? Not just spin it must spin in the direction of the mouse.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 10:57am UTC](https://forum.kirupa.com/t/turning-an-object/38094/9 "2003-12-22T10:57:52Z")

</div>

but if you’re dragging it, its ON the mouse, so there is no relative position of it in respect to the mouse. There is no ‘in the direction of the mouse’ because its always in the same spot.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 11:09am UTC](https://forum.kirupa.com/t/turning-an-object/38094/10 "2003-12-22T11:09:05Z")

</div>

> \*Originally posted by dreamer \*  
> \*\*very close…

I want a movie thats spins ONLY when the user clicks and drags it? Not just spin it must spin in the direction of the mouse. \*\*

Isn’t that what my FLA does ? And what about when the user clicks, but doesn’t drag ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 2:26pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/11 "2003-12-22T14:26:32Z")

</div>

yeah its right but whats with the arrow? i want a sybmol to be moveing. also you have to click on the arrow. i want the user to click anywhere on the screen…  
thanks alot for taking so much time to slove this problem! you guys are great!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 2:43pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/12 "2003-12-22T14:43:53Z")

</div>

> \*Originally posted by dreamer \*  
> **also you have to click on the arrow.**

No you don’t :sigh:

> \*Originally posted by dreamer \*  
> \*\*i want a sybmol to be moveing. \*\*

Dude, now what is it, turning or moving !?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 2:54pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/13 "2003-12-22T14:54:58Z")

</div>

I think its moving and turning… maybe something like this?

[http://www.umbc.edu/interactive/fla/constantFollow.swf](http://www.umbc.edu/interactive/fla/constantFollow.swf)  
[http://www.umbc.edu/interactive/fla/constantFollow.fla](http://www.umbc.edu/interactive/fla/constantFollow.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 11:43pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/14 "2003-12-22T23:43:15Z")

</div>

HAHAHAHAH… thats what i wanted! thanks… HOWEVER, you know when you put your mouse on the tip of the arrow it starts fliping

can you fix that\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2003, 11:48pm UTC](https://forum.kirupa.com/t/turning-an-object/38094/15 "2003-12-22T23:48:40Z")

</div>

also you c how it follows the mouse? I want it only to follow when the user clicks down and holds it.
