Flash Templates Tutorials - MOVIE CLIP
Many qualities of the movie clip are clear only due to its name. (For example, the width of the clip means _width in pixels).
Next on the list:
X and Y - are measured in pixels, and the upper left corner of your working field is considered to be the point (0, 0).
X and Y belong to the core main clip. If the clip is in the main timeline, then the system of its coordinates has the point 0, 0 in the upper left corner of the working field. If the movie clip is located inside of another movie clip, which has been subject to change, then the system of its coordinates is adapted to the system of the basic clip, and it is modified in conjunction with the main clip.
For example, if the main clip is rotated 90 degrees clockwise, then the movie clip located inside of it, will be also turned 90 degrees in the same direction.
Imagine that in clip A circle must move along the X axis, for example from the left corner to the right. If you put movie clip A into the movie clip B, and will turn the movie clip B 90 degrees, the range, of course, will move from the bottom to the top... because the main clip was turned, and has turned everything within it as well as the system of coordinates of the internal movie clip. Coordinates of the movie clip are measured on the so-called registration point. That is the same 0.0 point itself. If Use Center Point is enabled in the object qualities, then the point, the object position is considered on, coincides with the center of the object. Otherwise, the point is in the upper left-hand corner of the object.
Xscale and Yscale are measured in percentage, and the initial position is considered to be 100%.
Value changing is happening towards the registration point of the movie clip. Changing the size of the main clip and its coordinate system affects the quality of X and Y.
For example, imagine a clip containing another clip. In the internal clip a circle should move at 100 pixels somewhere. If the main clip is decreased in the size of 2-fold (50%), then the circle in the internal clip will no longer move for 100 pixels, but for 50. As its system of coordinates was also reduced by half. Rotation is measured in degrees of X, Y qualities. Rotation of Xscale Yscale is applied to the clip, and to everything that is inside of the clip. Not only the clip itself is changed, simultaneously in proportion to the main clip everything that is inside of it is also changed, whether they are objects or clips. Changing in the core clip is applied to all subordinates. Url determines the link where the clip is located. It may be visible and have True or False parameters. False means that movie clip is not visible and does not work. In this mode buttons can not be pressed and commands are not working.
Global properties are applied only to the main clip but not to the separate internal clips. ("Target" field is not active because you can not assign clips located at other levels). These qualities can be read from any point on the main timeline: highquality can have one of the following values:
"0" = low quality (no anti-aliasing)
"1" = high quality (anti-aliasing works, and if the clip does not contain animations, pixel images smooth out. If there is some animation, pixel images are not smoothed.)
"2" = highest quality (all images are smoothed out in any case)
focusrect - if it is as active (nonzero or true), the user sees a yellow rectangle around the active button if he moves between navigation elements with the help of tab button. Enable this quality (set false or 0) if you want only what is written in "Over" phase of the button to be seen.
soundbuftime sets the number of seconds granted to load sound played in the real time to the buffer. It is 5 seconds by default.
Using Properties menu: movie clip properties are mainly the variables that exist for any movie clip. You can set parameters for these properties to accurately set the clip behavior, or to get values and launch actions based on the obtained results. Expression editor contains the full list of all possible properties. Some properties relate only to a specific movie clip. Others are attributed to the main clip, and are called "global".
Copying and deleting movie clips: to create a copy of movie clip while the clip is playing, use Duplicate Movie Clip operator. When you are copying movie clip, the new movie clip starts playing from frame 1, even if the original clip was at another frame in the moment of copying. Remove Movie Clip operator serves for deleting of the movie clip created by Duplicate Movie Clip operator. Duplicate / Remove Movie Clip has the following parameters:
Action - writes down the operator itself which copies or removes the clip.
Target - appoints the movie clip that you want to copy or remove. Click "abc" to open Target Editor, and select the name of the clip from the list, or add the name of the clip manually.
New Name – it is the name for the new clip (clip copy). Write only the name, not the link. After the clip was named, it can be made called by this name from others sets of instructions.
Depth - determines the level at which the new clip should be placed in relation to other objects. One should be set Depth for each new clip, i.e. the level at which the clip should occur. Otherwise, the clip will set itself to the highest level - 0, replacing rest of the clips. Movie clip copies are always set above the original clip.
Remove duplicate movie clip - turns operator into Remove Movie Clip. Copied movie clip do not disappear until they are removed with the help of Remove Movie Clip, or until the original clip from which a copy was made is removed.
Note: Variables are not imported into the copied movie clip, and the new copy always is played from the first frame. Changing position and look of the movie clip:
to change the position, size, transparency, visibility and inclination of the movie clip, while it is playing, there is Set Property command. Set Property has the following properties: Set - appoints what property should be changed. X Position and Y Position appoints the horizontal and vertical positions of the movie clip. The position is assigned relative to the coordinates of the clip in which the movie clip is. X Scale and Y Scale change the clip size vertically or horizontally. The changes are specified in percents; 100% is taken as an original value. Alpha - appoints how transparent the clip should be. Transparency is set in figures between 0 (very transparent), or 100 (full color). Completely transparent objects in the movie clip yet have all its working functions. For example, a completely transparent button does not stop being a button and may be pressed as before. Visibility - determines whether the movie clip is seen. With True value, the clip is seen, and on the contrary with False value. You can also write 0 instead of False, any figure different from 0 would be perceived as True. Objects that are not visible do not work! For example, an invisible button can not be pressed and is not working. Rotation - determines the inclination of the clip. It is written in degrees. Target defines clip, which will be changed. Click "abc" button and select Target Editor to choose the name of the clip, or write the name of the clip manually. Value - determines a value of changing the property. For example, this expression will move the clip with the name target item on the Y-axis for 150 pixels from the edge:
Set Property ("target_item" Y Position) = 150
Installing image quality of the clip: Use Toggle High Quality to enable or disable anti-aliasing. (It is "blurring" or "smoothing" of the image, due to which image edges do not seem to be angular). If this function is disabled, the clip is played faster. Toggle High Quality influences clip playing in the flash player. If Toggle High Quality is attributed to a separate button, it allows the viewer to choose playing quality by himself. The first time you press the button anti-aliasing is disabled, the second time you pressed the button – it is enabled again.
Toggle high quality
You can also use highquality property.