Today, the Flash experiment class encountered a small problem, that is, I am drawing a rectangle such as:
Then I need to deform and bend this rectangle's border, the effect should be as follows:
However, I do not care how to move my mouse to the border section, even if the mouse under the curve of the hint, but can not drag deformation,
Then I found that the original transformation of Baidu image, it needs to be beaten. The specific principle is how to tell on the following side:
First of all to understand the Flash animation of various components of the difference, we know that the break-up is a flash drawing of a state, in fact, let the graph into a dot-like pixels, similar to a picture has a lot of small pixels to compose.
For example, you have a basin of water, water in the basin, the shape of the water is round, the basin is a group or component or drawing objects, this time you want to make water from the shape of the circle into a square shape, you will have to remove the basin, and then to the square, this time the water can change, you remove the basin of the process If you want the water to just move and move from the table to the head of the table, the shape of the water doesn't change, it's just the position, so just move the container, and the container is the component (movie clips, graphics, buttons), and it doesn't have to be broken up.
So breaking up generally used in the shape of the animation, is in the animation process two key frame changes in the shape, this time only to break up to the original state. For example, if a word becomes another word, you must first break it apart, that is, the container of the word is removed, he can become another word.
Of course you can also understand this problem, the image is not broken apart is a large pixel, because it has only one so can not be combined into something else, it can only be moved, rotated or scaled and so on, it is broken down into a small pixel point of a graph, these small pixels can be freely composed of any shape, If it is given to it in a later keyframe, then the small pixels of the previous frame will change from the software calculation to its future appearance, and the process of each pixel motion is made up by the computer, so the shape tween animation is formed.
To sum up, beating in fact is mainly used in the shape of the animation, such as the following situations:
1, the shape of the figure has changed, such as the smooth transition from the pentagram to a triangle.
2, the font changes, such as 1 to 2, Zhang Change Lee, will be the text to be broken, if you enter a paragraph of text, it is necessary to press two times ctrl+b to completely break the text.
3, do not want to use a movie clip or other components, want to re-do this component, you can break it apart, but here the beating and the front of the beating of the essence is different, here is scattered just the components decomposition, similar to group and group operations.
Then the combination of shortcut keys is (ctrl+g).
Flash production small problem why the deformation need to break the graphics (ctrl+b)