Introduction to Flash and the correct way to learn ActionScript programming

Source: Internet
Author: User
Tags goto relative
Programming Flash Entry Path

Below I say each ask, please do not skip, no matter what means you use, must be thoroughly digested, otherwise haste makes waste.
1, three kinds of layers
Layers: Similar to Photoshop layers.
Guide layer: Not only can guide the motion animation, but also has the reference layer the function (this function uses the person is not many).
Mask layer: Where the mask layer has an image, the contents of the layer below it can be displayed, a bit like the mask map of 3DS Max.
2, three kinds of frames: frame, key frame, blank key frame.
3, three kinds of symbols: that is, film cut, button, graphics, beginners can not use graphics, cut with the film.
4, three kinds of Flash animation file format: namely EXE,SWF,HQX
5, three kinds of flash common voice: Mp3,avi,wav
6, three kinds of movie generation mode; output animation, publish movie, Ctrl+enter
7, three important numbers: frame rate, movie size, background color value.
6, three flash common picture format: jpg, png,gif
7, three key shortcuts: f8_ convert to Symbol tab_ Show/hide panel ctrl_+/-zoom.

  the correct way to learn as programming

1, you learn to add the action of the three ways: on the frame Plus, in the MC Plus, add on the button. Use the play Stop goto these three commands to practice repeatedly. Don't use too many orders to give yourself a stun pill. Practice with the example, do not empty practice.
2, will be I said after 1, to learn to the button plus action 8 methods and to the MC Plus 9 ways.
3, will be I said 2, must learn the most basic programming of the most important things----path description (can be used to understand).
1> _ROOT.MC1.MC2. ... mcn.play () [or Stop (), _x, ...]
2>_parnet
3>this
4>MC1.MC2. ...
5>_LEVELN.MC1.MC2. ... mcn.play () [or Stop (), _x, ...]
Practice such an example may be helpful to you, put a song you like to listen to a random in a MC, at random in a MC or button on the action to control it, want to stop it, want to let it put on.
4, online learning effectiveness is low, if you have the financial conditions permitting, you can use the telephone to any one can consult the local consultation. That's how I learned it.
5, to self-improvement self-confidence, not superstitious foreigners, ingenious.
6, understand the sequence of code execution:
Layer default is to execute from bottom up
Level is executed from the bottom up
Frames are executed with the actual playback order
The code itself executes from the top down line
7, understand two kinds of coordinate system:
The coordinates of the scene, O point in the upper left corner, Y axis downward is increased x right is increased
Component coordinates, O Point in Assembly Center, Y axis downward is increase x right is increased
8, understand three kinds of text fields
Static stylistic field: the same as writing tools for typesetting software.
Dynamic text fields and input text fields: actually look at them as two variables, just visible variables.
9. Learn more about GOTO statements
Prevframe ()
Jumps to and stops at the previous frame.
NextFrame ()
Jumps to and stops the next frame.
Prevscene ()
Jumps to and stops at frame 1th in the previous scene.
Nextscene ()
Jumps to and stops frame 1th in the next scene.
gotoAndPlay ([Scene,] frame)
Jumps to the scene scene (omitting the frame frame that represents the current scene) and plays it.
gotoAndStop ([Scene,] frame)
Jumps to the scene scene (omitting the frame frame that represents the current scene) and stops.
10, to understand the various types of MC can be rewritten properties
_x Center Point relative to x coordinate (pixel unit)
_y Center point relative y-coordinate (pixel unit)
_xscale horizontal scaling, initially 100
_yscale vertical scaling, initially 100
_rotation Relative rotation angle (degree unit)
_width relative display width (pixel units)
_height relative display height (pixel units)
_alpha Display Transparency (0~100)
_visible is visible
_focusrect whether to show the focus box

11. Three major disciplines:
1> write code must be in English (such as en CH) input method.
2> must have materialistic thinking, not loaded MC is not to change its properties, but also can not write code to control it. This problem is more difficult to grasp, the master sometimes will make, the truth is to have to eat before the dinner, what is not dinner?
3> What to do is to choose what (in fact, any software is the case). When you add code to MX, if you do not choose, you must specify the name, in fact, is also a choice.
12. Several items of attention:
The 1> button cannot be covered with input text, and dynamic text and input text fields cannot be covered with buttons.
2> use Loadmovie when LEVEL1 and above documents as far as possible with the large stealth button.
3> Copy the MC instance from one file to another file, try to duplicate the frame as much as possible instead of copying the instance directly.
4> from a file to copy the MC instance to another file, first of all the symbol in the target file library symbols, loaded into the folder, a lot of netizens in this question on the above?



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.