Tuesday, July 20, 2010

Flash visual effects of the space shuttle


Achieved in this case is in the vast universe, passing by numerous stars effect. The case of realization of simple and effective blinding, also very practical. For example, in the instance put a warship, the aircraft will have the effect of fast motion. I believe this case will certainly add much color to your work, or what inspired you.

Here we begin concrete production.

1. Open FlashMX, set the scene of the size 450px X 450px, black background. Frame rate to 15fps.

2. Pressing the shortcut keys "Ctrl + F8" open "to create a new symbol," panel, create a "shooting star" in graphic symbols. Then in the "shooting star" symbol of scenes shown in Figure 1 Drawing of a meteor-like object, its width, height as 3 px, 100 px. Rendering of the meteoroids can be divided into paragraphs, each a different color, then better reflect the flow of visual effects.

3. Pressing the shortcut keys "Ctrl + F8" to create a "meteor shower" in the movie clip symbol. Then in the "meteor shower" symbol of the scene in the "Layer 1" layer renamed "animation" layer. Then pressing the shortcut keys "Ctrl + L" open library, the library graphic symbols "meteor" drag and drop to the "animation" layer scene.



Figure 1



Figure 2

4. Click the "animation" layer of the first one in the "meteor" shortcut keys "Ctrl + T" to open "deformation" panel and make the settings shown in Figure 2.

5. Right-click the "animation" layer of the first frame and select "Create motion tween" command to create motion tween. Then click to select the layer were the first 12,22,30,36,42,45 frame and press "F6" key to insert a key frame. Shown in Figure 3.



Figure 3

6. Figure 3 shows, then click the first 46, according to "F7" key to insert a blank keyframe. Then right-click on the empty frame, select the pop-up menu in the "action" command, in the open "action" panel, enter the code: "stop;". Figure 3.

7. Click the first 12 in the "meteor", open the "deformation" panel to the width and height scaling set to 55% and 6%, and it moved up 20 pixels. And then 20 in the "meteor" in width and height of zoom point and also move up a certain pixel. S 30,36 ... frame and so on. Thus, when the "meteor" closer and closer to us, it will look bigger, the speed of movement will be faster.

8. Back to the main scene, open the library, the library in the movie clip symbol "Meteor Rain" onto the main scene. Then click in the scene in "Meteor Rain", in its property panel to it from entities called "meteor", shown in Figure 4.



Figure 4

9. Right-click on the main scene of the first one, select the pop-up menu in the "action" command, in the open "action" panel, enter the following code:

/ / Define function "spacetime ()", which role is to copy the movie, and video point of view, transparency properties were set
function spacetime () (
/ / I was the only copy the movie clip depth (level), depth is the copy of the video clip of the stacking order
/ / If the variable "i" is greater than 300, its value is 0 on reset
if (i> 300) i = 0;
i + +;
/ / Statement duplicateMovieClip () function is to copy the video clip
duplicateMovieClip ("meteor", "meteor" add i, i);
/ / _rotation Is the point of property, _alpha transparency property is
/ / Function random () can return in parameter value between 0 and a random integer
this ["meteor" add i]. _rotation = random (360);
this ["meteor" add i]. _alpha = Math.random () * 30 +30;
)
/ / Statement setInterval () can be called from time to time interval to a function, method or the like, in milliseconds
setInterval (spacetime, 10);
Well, here produced results that can be tested.

Finally, there are several points I want to draw attention. The first is the code statement "if (i> 500) i = 0;" This usage is possible, if the switch back to normal mode, you will find that the system will automatically add the statement "()" and indent. In addition, random () function is already in Flash5 in use is not recommended. Recommended Math object random () method replaced. This method returns a 0 to 1 a few. For example, you can use the statement Math.random () * 360 to replace.

This effect in terms of if you put 360 in the "0" to remove, or be "shaking shaking", the effect ... ... hey, interested readers can see for yourself.






Recommended links:



Who can resist the layoffs hit the DOOR



Lohan DVD to WMV



audio TO mp3 converter



Youtube to AVI Plus



My Favorite News Servers



Photoshop Mask Analysis



ts video Format



Review Helpdesk And Remote PC



Prompt! teleprompter for Mac OSX



Recommend Kids Education



Mkv file



Event learn Anything from the Diet Coke?



Compilers And Interpreters Report



video converter mp4 to mpeg



MP3 M3U To ID3



No comments:

Post a Comment