Problems with movie clips and classes in as2 0

Updated on amusement 2024-02-08
10 answers
  1. Anonymous users2024-02-05

    The class ca assigned to A, then this in the class refers to the element A, to be accessed in the class assigned to A, define private var b:movieclip at the beginning of the class; Then you can access it by using it directly.

  2. Anonymous users2024-02-04

    It's very easy, hi in the package to teach you.

  3. Anonymous users2024-02-03

    "mc_foo","new_mc_foo",1);

    The first parameter is the name of the class you bind, which is called the identifier.

    The second parameter is the name of the instance that needs to be named after it is added.

    The third parameter is the depth layer to which the component is added. Note that in the middle, the depth will not be as compact and automatically adjusted, after being added to the shed, if you don't change it, the system will not adjust your depth, and the depth of the elements manually dragged to the stage will be negative.

  4. Anonymous users2024-02-02

    I probably don't quite understand what you mean.

    But I think you might need to stop for two seconds and then revert all the clips in Clip 1 to the first frame.

    Use gotoandplay(1) for all sub-clips in clip 1, in the ontime function.

  5. Anonymous users2024-02-01

    In keyframes.

    mc2._visible=false

    button bt1**.

    on(press)

    button bt1**.

    on(press)

  6. Anonymous users2024-01-31

    You can set the variable under the root timeline, for example, frame=1 in the C clip in the A clip button control variable, you can write it in such a format for variable judgment, available.

  7. Anonymous users2024-01-30

    This is not difficult, you send me the source file, and I will write it for you.

  8. Anonymous users2024-01-29

    What are the variables? What are the properties of an object? In fact, there is a close relationship between the two, the variable essentially points to the object in memory, since it is an object in memory, then it can be an arbitrary object, so it can be complex, it can also be simple, complex of course some we call classes, instances and the like, simple is some number symbols, etc.

    The property of the object is a description of the object, which is a quantified thing, so it can be replaced or referred to by the variable, so we can say that the property of the object is actually another form of existence of the variable, but the connotation of the variable is much larger than the property of the object, so to speak, the attribute is the variable, but it cannot be said that the variable is the property of the object.

  9. Anonymous users2024-01-28

    The properties of a movie clip are equal to the material, color, and position of a cup. Size. And so on.

    A variable is equal to a virtual cup. You can put a lot of stuff in it.

    Learn from scratch. It's hard to understand these directly. I won't use it

  10. Anonymous users2024-01-27

    The easiest way is to delete the movie clip directly from the library, if you just delete it in a certain frame, find the movie clip of a certain frame, del delete it, don't use **.

Related questions
21 answers2024-02-08

The Chinese team is no longer qualified, the group has failed to qualify, and it is not eligible to participate in the play-offs! There are very few Chinese fans like you