all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

Center points and action script


Center points and action script AJH16
6/16/2004 7:50:25 PM
flash actionscript:
I'm trying to make a rubber band move around on a pin. The problem is that I
moved the center point of the rubber band to be over the pin, and when I use
the translate tool, everything rotates fine. When I use the _rotation
actionscript variable however, it resets to using the geometric center. Does
anyone know what is going on and how to fix it? Also, if anyone has any easy
ways to make the other end of the rubber band follow the mouse, that would be
greatly appreciated as well.
Re: Center points and action script Peo
6/17/2004 1:59:11 AM
If you rotate something (authortime) with the free transform tool, the transformation is
made according to the centerpoint in the actual tool, not the centerpoint of your clip.
The centerpoint of the tool kan be moved around freely to suit your needs while
transforming, but it has nothing to do with the clips centerpoint (registration point i
think it's called), wich is the point "around" witch every actions-script transformation
is done (runtime); rotation, _x nad _y -positions etc.
To move the clips registrationpoint, you actually dont move the point itself... You move
everything inside the clip in the opposite direction.
I Dont belive it's possible to move the centerpoint of a clip at runtime, not unless you
are moving another clip inside it.

Sorry about my confusing description.

Peo

Re: Center points and action script AJH16
6/17/2004 4:18:11 PM
AddThis Social Bookmark Button