For Flash scripting masters, please enter 20

Updated on technology 2024-02-09
4 answers
  1. Anonymous users2024-02-06

    **Not quite, right?

    It's a lot. Static functions are the kind of variables that pass them.

    static function initialize(target) defines loc2 as a property for mc.

    var _loc2 = ;

    The pass is not in the MC.

    if (target instanceof movieclip). loc2 = target;

    end if

    if (_= null)

    return (false);

    end if

    Assignment. var _loc3 = _;

    Call the function. ["movein", "moveout"], 5);

    return (true);

    end of the function defines the function.

    Function movein(frame, func) The number of pins is greater than the total number of pins or is empty.

    if (frame > totalframes ||frame == undefined)

    Assignment. frame = _totalframes;

    end if

    Less than the current one. if (frame < currentframe).

    func(this);

    elseFunction onenterframe(). if ( currentframe < frame) down.

    elsedelete ;

    Call the function. func(this);

    end else if

    end of the function// end else if

    end of the function...There is more to come.

    Call the function. moveout(frame, func)

  2. Anonymous users2024-02-05

    To define it in the simplest sentence: script commands in flash are abbreviated as AS language.

    a: action, the meaning of action, s: script, script. Do you understand? Hehe.

    Action Scripting Concept: Action scripts are the commands, operators, and objects that Flash MX provides to us, and when you use an action script, you must attach them to a button, movie clip, or frame so that they are triggered when you click a button or press a keyboard key. in order to achieve the required interactivity.

    The best way to learn action scripts is to actually operate them, even if you don't fully understand them, it doesn't affect the use of their control functions, you can still achieve simple interactive operations, and after a period of practice to use basic actions (such as play and stop), you can start to learn more about the language after you know a little bit about action scripts.

    How do I add scripting to my flash? To put it simply, there are two types of adding scripts:

    The first is to write the script on the key frame on the timeline (note that it must be on the key frame before you can add the script).

    The second is to write the script on the object, such as writing the script directly on the mc (instance of the movie clip symbol) and on the button. If you want to add an AS statement to the key frame, you need to select the key frame first, then open the action panel, and enter the AS statement; If you want to write a script on an object, select the object and then enter the as statement.

    Flash's action script, like other languages, has its own rules for how to use it, and sentences written against these rules will not be recognized by Flash. flash always starts from the first sentence of the script when executing the action script, and executes it sequentially until the last sentence is executed.

    All in all, learning scripts is one of the more esoteric and laborious tasks in flash production, but it is not impossible to master. The key is to learn more, see more, and do more.

  3. Anonymous users2024-02-04

    I studied languages.

    I didn't go through systematic study, and basically I just taught myself. I don't have any foundation, so from the beginning I was looking for a posture on the Internet, and then set, but at the beginning, I often didn't set well, because I didn't understand the meaning of **, so I found some **detailed explanations on the Internet.,And then try to interpret the meaning of those**.,That's how it will slowly set**. Some commonly used basic **, used more times, I gradually understand the use of these **, understand more, more flexible when using, delete some unwanted, add some can be used.

    In this way, we continue to ponder and make progress. I'm still not a master, but I'm at least getting more and more.

    I don't know if my experience will be useful to you, but there should be something to learn from. My method, in fact, to put it bluntly, is from easy to difficult, from one-sided to comprehensive, from passive to active, the process, in addition to more brains, more analysis, more thinking, more contact, as long as you are willing to work hard, want to learn AS, it is not too difficult.

    Flash scripts, those who are considered masters, in fact, should know one thing, that is, in flash, many scripts, in fact, are simply a mathematical calculation formula, but the values in it are replaced by some ** in flash (if you don't believe it, look at the mouse following**, let the master help you analyze it). Therefore, if you are good at math (preferably at the level of college, not enough in junior high school, barely enough in high school), it will be of great help in this regard.

    The second is to flexibly use filial piety and combine it with various components. I once made a flash. There are many movie clips, and the requirement is that after the first 10 movie clips are finished, the 11th goes to the second frame.

    Create an empty movie clip. Put 11 keyframes, each give a stop, and give the 11th keyframe to let the 11th movie clip go to the second frame** (here** will not be written). Then the last frame of those 10 movie clips is given a ** that makes the empty movie clip go backward one frame.

    In this way, no matter what the 10 movie clips go, the empty movie clips will go backwards frame by frame. When you go to frame 11 and trigger**, the 11th clip goes to frame 2. I've asked about the all-scripting approach, and it's a lot to write.

    In fact, don't be afraid to learn scripts, as long as you learn more and memorize more, and use your brain more, it won't be a problem.

  4. Anonymous users2024-02-03

    Learning to learn Flash actionscript isn't very difficult. As long as Bu Zheng has strong logical ability, it is enough.

    Recommended tutorials.

Related questions
11 answers2024-02-09

You add ** to the movie clip, but not to the timeline, click the keyframe after f9, don't click the movie clip after f9 >>>More

7 answers2024-02-09

The landlord can take a look at my previous one. Never copied mess. Then this BS only wants to ask for points. Be kind. >>>More

22 answers2024-02-09

If you want to improve, it is recommended that you upgrade the carving, and there are gems, because this 2w7 internal attack is really not high! And your internal defense is too low! If you want pk, it is recommended that you also play Xuan Resistance gems and martial soul skills to learn a Xuan Kang, because now many em are taking the Xuan route (of course, the mainstream is still ice) and Murong is also Xuan, depending on your resistance, you should be a player who wants to pk, the ice resistance is too low, if it is just to brush the copy, then 29 ice resistance, plus the ice resistance of the martial soul and then eat an ice resistance is enough, to PK Tianshan that ice resistance must also be strengthened!

8 answers2024-02-09

- chipz in black

Opening dance song Shenyang major Di bar hit chipz%20in%- one,two,three >>>More

14 answers2024-02-09

A 500g hard drive is a bit big for home use, but it's not an exaggeration. >>>More