How does AS3 better manage frame jumps? 5

Updated on workplace 2024-04-14
11 answers
  1. Anonymous users2024-02-07

    Each character's actions are limited such as running, attacking, etc., and the same tags such as run, walk, stop, attack, etc. are used on the MC.

    Then take up an enumerated class.

    public package

    public class animationtype {

    public static const attack :string = "attack"

    public static const walk :string ="walk"

    public static const stop:string = "stop"

    The future call is called if there is one.

    I started running.

    Hope that helps.

  2. Anonymous users2024-02-06

    Philgemini's method is good, with enumeration, in fact, I am most accustomed to using layer control on the frame, if you are using flashcs, multiple layers, depicting multiple different images on it, and then combining, if you want to involve multiple actions, you can do it in one layer, name the frame, such as move, run, walk, fly, etc., and then you can directly use **gotoandplay("move/run/walk/fly");That's it.

  3. Anonymous users2024-02-05

    First of all, the txt text problem, when flash is created, you need to set a frame rate, such as fps: 24, the frame rate is fast to a certain extent, and the human eye will not be able to capture it. So to display this frame number with text, it is better to use trace(; It is more in line with the debugging needs.

    Secondly, the frame monitor produces 123123123 such content, which seems to me to be abnormal. And the result I saw through the trace,Before the registration center point of the MC does not exceed the width of the stage,The display is also normal like 2323,The reason for the abnormality of the display 123123 is caused by the ** of the third frame。

    So, it is advisable to will.

    if(dx<

    gotoandplay(2);

    Modified to. if(dx<

    gotoandplay(2);

    elsestop();

    If you want to see the MC completely move out of the stage and then stop, you can change the conditions in the if.

    Hope your problem has been solved.

  4. Anonymous users2024-02-04

    It is estimated that it is a problem with the structure of the program, or the relationship between the frame and ** is not clear. You can send me the ** and I'll take a look at it for you. It's mine.

  5. Anonymous users2024-02-03

    Here you need:

    currentframe

    Write :if( in the enterframe

  6. Anonymous users2024-02-02

    Touch: Function Broll (event:mouseevent) button. addeventlistener(,broll);Mouse over can also be roll over

    Touch the Away:Function Broll (event:mouseevent) button. addeventlistener(,broll);Mouse out can also be roll out

  7. Anonymous users2024-02-01

    Small example: Put a movie clip on the scene with 30 frames of animation (no **).

    Method 1: Write ** on the main timeline.

    1) Name the clip MC

    2) Write ** on the main timeline.

    AS3 uses listeners, addeventlistener adds the time type of listener to the MC.

    The onenterframe ff equivalent of as2 is a function that responds to events.

    ff);function ff(e)

    else if(

    Method 2: Write ** in the first frame of the video clip.

    1) No need to name your video clips.

    2) Write ** in the first frame of the movie clip.

    This refers to this video clip, the same method as 1,ff);

    function ff(e)

    else if (}

  8. Anonymous users2024-01-31

    At frames 10, 20, 30, insert a keyframe, right-click, and then write **Hey directly on top of the frame.

  9. Anonymous users2024-01-30

    as3 also supports gotoandplay(),I really don't know how many frames to run to judge the number of frames on the don't write frames.,Occupy a single digit to learn.。

  10. Anonymous users2024-01-29

    If you do this, the next virgin button will not respond, try it with AddFrameScript.

  11. Anonymous users2024-01-28

    package Yours is missing this.

    public function clicking1(event:mouseevent)

    private function clicking2(event:mouseevent)

    protected function clicking3(event:mouseevent) }

    At the end, there was an extra {, which has been removed.

Related questions
17 answers2024-04-14

Those who have achieved great things can always control their emotions, do not lose their temper in front of the public, and can adjust their emotions in time to put themselves into work. To a certain extent, emotions are a key factor in efficiency. So how do you control your emotions? **Some suggestions for you, welcome**.

10 answers2024-04-14

How can I socialize better?

5 answers2024-04-14

Don't blindly pursue hand speed, it's not a good phenomenon. Really, if it's a mess, what's the use of a fast hand. But a certain amount of hand speed is necessary. >>>More

4 answers2024-04-14

Hello Ligament compression belongs to the basic knowledge of sports The most important thing to compress the ligament is to warm up And to choose the appropriate time Generally the morning is the best But it is also the most difficult to press If there is no time in the morning 16:50-17:40 in the afternoon, this time period is also the best Warm-up first run About 1500-2000 meters is enough After running, prepare for the activity Lunge pressure Flutter step pressure Then let go of the power and kick 10 kicks per foot are about the same Then find a bar (generally higher than the waist) to start pressing I'm pressing 50 on one foot and then changing my foot 30 times It's okay to keep pressing After pressing a set of kicks 10 times, just keep pressing for 20-30 minutes (you can rest halfway) Insist every day Don't rush Otherwise, the ligament strain will be difficult to deal with Generally around 20 years old, you can get off the fork after about half a month I can do it in a week Hehe I hope it will help you.

5 answers2024-04-14

Brother, it is not difficult to communicate with people, there is no need to be ashamed, and you can't be too afraid of losing face, a man has self-esteem and dares to behave, and he can't hinder face and always retreat in the process of interpersonal interactions. Take the first step, and you will succeed in a big step.