Understanding FLASH5 mouse effects of Action
We often saw wonderful magic FLASH website interesting mouse effects, such as animation following the mouse, the mouse pointer transformation, animation or picture according to the location of the mouse movement and deformation, etc., these effects are functions with the FLASH implementation of Action , while Macromedia's latest software updates produced FLASH5 most functionality is Action. This realization of our primary flashers these more simple and convenient to make the dream of FLASH mouse effects, also advanced flashers to make the mouse more dazzling special effects super cool! Well, gossip talk less, let us open FLASH5, into the Action of the world!
First, let us use a simple Action understanding. Action generally exist in two places, one in the button (Button) and video clips (Movie Clip), the second is in the scene (Scene) or component (Symbol) frame (Frame), when we are alone in their top Click right to see when the pop-up menu action (action) this one has (see Figure 1).
In FLASH5, go to the Action Editor window, the window on the left is a list of all the Action, we can add the Action by double-clicking the. Click the right arrow upper left corner of the window you can see the editing Action has two modes: standard mode (Normal Mode) and the expert mode (Expert Mode) (see Figure 2).
Expert Mode is a new feature Flash5, make familiar with the Action of High flashers faster editing the source code of Action. We generally use the Normal Mode, in this way, when we add, or select each of Action, will appear in the window below the parameters of this Action option.
Action to familiar operations, we do first to follow a simple example of the mouse, create a file first a Movie Clip (Note: Button and Graphic do not directly follow the mouse, and can only plug in the Movie Clip in the can), then he asked into the scene1, right click on him, and then the pop-up menu, select panel (Panel)> instance (Instance) (see Figure 3),
Fill in the name of (Name): movie1 (see Figure 4),
The first frame and then edit scene1 Action, in the list on the left to select Action> StartDrag, the parameters of target (target), fill in the scene in the Movie Clip name movie1, and then select the checkbox “Lock the mouse to the central” ; (see Figure 5),
Press Ctrl + Enter preview, this one of the most simple to follow the mouse made it! How, is not very simple ah.
[Next]
Done in front of the case, we have modified, you can make your own custom mouse pointer effects, first just to do Movie Clip into your own custom mouse pointer animations, and then do all the press the previous example, in a select list of Action objects> mouse> hide (see Figure 1),
Without any arguments (in fact there is no parameter added ^ _ ^) is complete.
The previous example of the mouse pointer as long as FLASH animation to start playing it becomes your own custom effects, and we see in many sites the effect of FLASH is not the case, but when the mouse button or the designated location only appeared custom effects, how is the system made of? Through the study of production of this effect, we can learn several important Action. Let us once again open to the example, press Ctrl + L bring up this example, symbol library, and then press Ctrl + N to create a new file to have the example of the symbol in the library asked the mouse pointer into the Movie Clip animation scene, but location to the scene on the camera outside the gray area, named it newmouse (Note: This name can not change the mouse, or in the implementation of the Action will produce an error), then press Ctrl + F8 to create a new Button, Button to do this is completed, the main scene into a new layer, the editor of its Action, joined the StartDrag, fill in the object name newmouse, select the checkbox “Lock the mouse to the central”, we find that the line above in StartDrag There are an Action: “on (release) (”, select this check box below in the Action to release (release) hook to go, check the pointer after (rollOver) (see Figure 2),
Such conditions put StartDrag trigger release triggered by the mouse pointer to the mouse pointer through the table. By the example of the method in this condition with Action: “Mouse.hide ();”??Selected at this time by adding the last line of Action :”}”, action StopDrag, the trigger conditions to pointer from (rollOut), under the conditions of accession in this object> mouse> show, then the effects on the basic completed, but we will find a preview of the issue, when we put the mouse moves away from the button, just our custom mouse pointer animation has not disappeared, ??? stop in the button on the edge of
This requires us to use another Action to the mouse pointer animation away from the lens. Once again, we edit the button's Action, the pointer leaves the trigger conditions, then add another 1 Action: Action> setProperty, function, attribute selection _x (X axis), target fill newmouse, numerical fill 1000 (the width of your building scene not bigger than this, right?) (see Figure 3),
Preview this again, how, problem solved!
This time we want to do something about it? Or the mouse to follow, but this time the mouse to follow and we speak of a somewhat different example,
The mouse to follow the effect is not cool ah:), now we start making it! First create a Movie Clip animation, one frame in the final edit Action, joined the Action> Stop, put it into care outside the area shot the scene, named for the movie:, edit the first frame of the Action, this time we press Ctrl + E Select expert mode (in the mastery of Action, the faster this way), enter the following code:
duplicateMovieClip (”/ movie:”, “movie:” add num, Number (num));
setProperty (”movie:” add num, _y, _ymouse);
setProperty (”movie:” add num, _x, _xmouse);
num = Number (num) +1;
if (num> 10) (
num = 0;
)
And then press F6 to duplicate this frame three times, editors choose the last one of the basic movements in Action Go (gotoAndplay), keep the default parameters, preview the completed. Let us analyze this Action Bar code:
duplicateMovieClip (”/ movie1″, “movie1″ add num, Number (num));
The object is copied scene movie1, it named the name of “movie:” Canada in the form of variable num, on different depths;
setProperty (”movie:” add num, _y, _ymouse);
setProperty (”movie:” add num, _x, _xmouse);
These two set a new copy of the Movie clip of the horizontal and vertical coordinates of the mouse current position;
num = Number (num) +1;
Variable is the cumulative num stop replication Movie clip;
In order to prevent excessive replication, leading to resource over-occupied by if (num> 10) (num = 0;) Control Movie clip of the greatest copy number.
How, as long as some of you know a little programming knowledge can understand these Action code it, if you are a programming expert, you can use different mathematical formulas to make complex Action program, in order to achieve amazing special effects! Well, we have introduced special effects mouse effects so much, you are on FLASH5 of Action we have a certain understanding of it? Action If you are interested, please share with me through Email, my email address: vitalnet_yh@sina.com.
????:
NavInfo SAIC Roewe Help Promote The Car Navigation
Out errors to make your writing More efficient CSS
blackberry 8520 curve fantastic handset with
Step by step teach you uncover and remove Trojan horse disguised
MINIATURE GPS UK listed on its mixed people
Good Gallery And Cataloging Tools
Nothing To Fall Back Tencent Sogou Input Method Of Unfair Competition
Inventory And Barcoding Specialist
Comparison of CADDS5 and TRIBON



