Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to parse the registration point and central point of objects in Flash CS6

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces how to analyze the registration points and central points of objects in Flash CS6, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.

There is a registration point and a central point for any Flash object. Since these objects include instances created with symbols, they also include graphics and objects in merge mode, object mode, and basic drawing mode with various drawing tools.

Where is the registration point and the central point

Instance and non-instance (refers to graphics and objects in merge mode, object mode, basic drawing mode with various drawing tools) registration points and center points are displayed differently.

1. Examples

Take a look at the following figure, which is what happens when you create a component using the new component method

The "+" in the middle represents the current registration point of the symbol, while the center point is the current center (you can see it after you select it using the arbitrary Morph tool). When you create an instance with this symbol, the registration point and the center point are represented as shown in the following figure (visible only after selecting the instance):

At this point, the center point can be seen in the example, which is the small circle in the middle of the circle. If you center the stage horizontally and vertically when creating a symbol in symbol editing mode, as shown below:

After the component is instantiated, the registration point and the central point coincide, as shown in the following figure:

(it's a little strange that if the symbol is modified and repositioned so that its center point is inconsistent with the registration point, the instance created before modification will not be modified or will remain in its pre-modified state.)

If you use "modify" à "convert to symbol" to convert the object of the stage directly into a symbol, the registration point is coincident with the center point by default.

If the instance is rotated, its center point coincides with the registration point, of course, the registration point will not change; if not, the registration point will also rotate with the center point.

2. Non-instance

For drawings and objects in merge mode, object mode, and basic drawing mode using various drawing tools, you can select the drawing or object view center point through the arbitrary deformation tool, but the registration point is not visible. Not seeing the registration point does not mean that there is no registration point, which defaults to the upper-left corner of the object. As shown below:

The center point is the middle dot, and the registration point is the upper left corner (circled in blue).

However, if the square in the image above is rotated at a certain angle with the center point, will the registration point remain in place? No, I won't! For example, the following picture shows a square rotated at a certain angle, and its registration point becomes outside the square. Judging from the effect after rotation, no matter how much you rotate, the registration point of the final non-instance object is the intersection of the top horizontal line of the whole drawing or object and the leftmost horizontal line.

2. How to check the coordinates of the registration point and the central point

To view the coordinates of the registration point and the central point, when you select an instance or a non-instance object, open the Info panel to view it, as shown in the blue box below

The X and Y values of the blue box in the information panel are the coordinates used to represent the registration point or center point. When you click this icon, you can switch the coordinates between the registration point and the central point. Indicates that the current X and Y are registration points. Click and switch to this icon. X and Y represent the coordinates of the center point. You can reposition the instance or object on the stage by changing the values of X and Y. It is clear from the above analysis that when X and Y are all zero, the instance or object is not necessarily all or part of the stage. For example, as shown in the following figure, the X and Y of the example are all 0, and the examples are all off the stage.

Third, modify the relative position of the registration point and the central point

(the relative position of the registration point and the central point here refers to modifying the position of the registration point and the central point relative to the instance or the object itself, rather than their coordinate values.)

Obviously, if you use instances or objects according to the default registration point and central point, sometimes it can not meet the needs of the application, so the registration point and central point will be modified.

It is easy to modify the center point. After the instance or non-instance object can be selected by the "arbitrary deformation tool", you can directly drag the small circle that represents the center point.

It is more troublesome to modify the registration point, and there is no way to modify the instance, only after entering the editing mode of the corresponding symbol, the registration point is relatively modified by adjusting the location of the object (it should be noted that the instance created before the symbol modification is not automatically modified because the symbol modified the registration point, it is necessary to delete and create another instance). On the other hand, the registration point of the non-instance object can not be modified, and the object can only be passively modified after deformation through the "arbitrary deformation tool".

On how to parse the Flash CS6 object registration point and the central point to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 214

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report