Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Canbrit1000 #1
Rotating a mc to point at another mc
I thought I had this one right but it does not work
I want the direction of the arrows to be in relation to each other as one is
dragged around
I used this code on the moveable arrow and put a text box on stage to check
that the variable '.root.direction' is working
onClipEvent (enterFrame)
Radians = Math.atan2((this._y-_root.arrow1._y), (this._x-_root.arrow1._x))
_root.direction = Math.round(Radians*180/Math.PI)+" degrees"
_rotation=_root.direction
For some reason it will not rotate with the variable
If I change the variable with a number it rotates
What am I doing wrong
This is my .fla fil
[url]http://wgadesign.com/direction.fl[/url]
Canbrit1000 Guest
-
the angle from point A to point B (where the mouse is)
i'm trying to figure out the angle between a point in my sceane and the point at which the mouse has been clicked. i've been looking at 3dD world... -
Getting a camera to point at one point
Hi, I've got a room where I can interpolate the camera to various models wihtin it by clicking on certain buttons. Once a button has been hit I... -
Add Point tool won't add point
I'm an Illustrator novice. I was tearing my hair out trying to get the add point tool to add a point to a path. It refused. I finally got it to work... -
Rotating
how do I rotate a primitive/model without rotating it's own axis system. example - When creating a cone, it is created with it's sharp end pointing... -
The best way to rotate point around other point ?
Hi, I need to rotate point in space around other point in space (not 0,0,0) and all three axis - different angles. Plz can you help me ? I will do... -
Canbrit1000 #2
Re: Rotating a mc to point at another mc
I just answered my own question. I was being stupid as usual and forgot that I had added text to the variable.
What a dodo. *lol*
Canbrit1000 Guest



Reply With Quote

