On the joint application of load animation and dynamic text in active drawing

Source: Internet
Author: User
Dynamic | Problem I am in the active painting, want to Loadmovie a swf come in, this SWF has a dynamic text box, this text box to display the contents of the text file, tried a few times, or not, and finally to find a slash brother, help to solve, from which I also realize some things, veteran saw don't laugh I stupid, Rookie or learn.

At first I wrote this in the active drawing:

Movie.loadmovie ("texts.swf");


Loadvariablesnum ("Texts.txt", 0);

The result didn't work out, I made two mistakes at this time.

Explain the use of Loadmovie and Loadvariablesnum first

It's two different uses, there are two kinds, first say Loadmovie

The first is the use of the comparison, for example:

Movie.loadmovie ("movie.swf"); Movie is the film to be loaded (just like a container), movie.swf is to be loaded into the animation

The second use, I do not use, slash brother is not commonly used, do not know whether you are commonly used, such as:

Loadmovienum ("movie.swf", 1); Here's the movie.swf or the loaded animation, "1" is the meaning of the layer, that is, movie.swf this animation loaded into the first layer.

Again, the first type of loadvariables, for example:

Loadvaiables ("Texts.txt", "movie"); The texts.txt here is a dynamic text box to load the contents of a text file, movie is the animation of the text box, the name of the movie that was loaded into it.

The second type:

Loadvaiablesnum ("Texts.txt", 1); Here the Texts.txt is a dynamic text box to load the contents of the text file, "1" is the meaning of the layer, that is, the animation of the text box is loaded into the first layer.

Well, the use of these two objects is finished, should say where my mistake happened, hope to see my friend of this article

It's not going to make such a mistake.

That's how I wrote it at first.

Movie.loadmovie ("texts.swf");


Loadvariablesnum ("Texts.txt", 0);

Of course, the two of them should be used together when the corresponding, what is the corresponding?

This means that Loadmovie is loaded into the specified movie, so Loadvariables can't write like that, so write

Loadvariables ("Texts.txt", "movie"); is to also load this text file into the specified movie.

According to the corresponding principle, there are two kinds of correct writing:

Movie.loadmovie ("texts.swf");

Loadvariables ("Texts.txt", "movie");

Another method of determination:

Loadmovienum ("texts.swf", 1);

Loadvariablesnum ("Texts.txt", 1);

Well, finally finished, it's time to have breakfast, write this thing hope to be helpful to everybody

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.