Skip to main content
atar11
Known Participant
August 16, 2011
Answered

What's registration point?

  • August 16, 2011
  • 1 reply
  • 7891 views

Hello there!!

I wanted to know please what's exactly the concept called:" registration point"

I'll be glad if someone here will explain me clearly and in detail what this term means.

Thanks in advance!!

Atar.
This topic has been closed for replies.
Correct answer Kenneth Kawamoto

OK, so actually, what's the difference between those two terms? (the transformation point vs. the registration point)


Registration point is always (0, 0), the top left corner of an object. However please note the visual element in a object can be placed at a negative point such as (-10, -10). In this case the registration point appears to be at (10, 10) but it's not. The object registration point is still (0, 0) with something is placed at the negative point.

All the transformation (scaling and rotating) by ActionScript is performed at the registration point (0, 0). (However, you can do the transformation using any point using Matrix.) Measurements (location, distance etc) are also all based at the registration point.

Transformation point only exists in Flash IDE when you transform an object manually. It's set to the center of the object by default. Transformation point does not exist in AS (unless you do the transformation with Matrix), or you can say it's the same as registration point in AS.

1 reply

kglad
Community Expert
Community Expert
August 16, 2011

each object has a registration point.  that point is used in all geometric transforms (positioning, scaling, rotating etc) of the object.

the easiest way to understand how the registration point is related to geometric transforms is to experiment with it:  create a movieclip and place a rectangle at some place on the movieclip stage.  (the registration point will be marked by the + on the stage.)  drag the movieclip from your library to the main timeline and assign it an instance name, eg mc.

then attached to the main timeline frame that contains your movieclip use:

mc.addEventListener(Event.ENTER_FRAME,f);

function f(e:Event):void{

mc.rotation+=2;

}

and test.  then change the location of the rectangle relative to that + and retest.  notice how the rotation changes depending on the rectangles position relative to that +.  once you understand how the rotation depends on the registration point.  work on the scaleX property (ie, use mc.scaleX+=.02 instead of mc.rotation+=2).

Participating Frequently
August 17, 2011

To add to KGlad,

The registration point represents the 0,0 cartesian point for a clips Object coordinates.

Remeber that everything you do in flash takes place within a cartesian graph. top left  is (0,0) .

In the realm of 2d there is what is known as Linear Transformations.  where width is along the x axis and y is along the Y axis.

An object has 4 points at all times which reflect the bounds.  these points represent the width and height of the bound area, on the coordinates, which will properly reflect the width and height x & y from the origin point (THE Registration Point).

The registration point represents the 0,0 at all times of the object for any and all 2d transformations.  IE rotations, scale, shear, etc.

While the Registration point represent 0,0, it can actually be moved.  yet this does not change the fact that the registration point reflects 0,0 as the local object coordinate.

atar11
atar11Author
Known Participant
August 17, 2011

Hello feZEC!!

Thanks you about your kind response but I  struggled to understand what your meaning because I didn't understand what's the cartesian point that you mentioned inside your words.

I will be happy if you can interpret your meaning in simpler words!

thanks in advance!!

atar.