In Flash, the method of importing text _flash as

Source: Internet
Author: User
3. Text Import

In our production of the whole flash site often encountered a certain amount of text content needs to be reflected in the content of the text and the process described above is the same, different places to reflect the final performance and treatment methods are still a little different.

Method One, text graphic method

If the text content is not much, there is a hope that the text content to do more dynamic effect, you can use this method. You will need the text to make a number of flash components, arranged in the appropriate location. The document loading of the text graphics method is similar to the approach described above, and the principle is almost the same. The concrete dynamic effect waits for everybody to consider, here does not have much introduction.

Method Two, Direct import method

Text Import method can be independent of the TXT text file, through the Loadvariables import into the Flash file, modified only need to modify TXT text content can be implemented flash related file modification, very convenient.

Set VAR: variable name in text Box properties (note this variable name).

Add ActionScript code to the frame where the text box is located:
Loadvariables ("variable name. txt", "");


Write a plain text file. txt (random file name), the text begins with "Variable name =", "=" after the formal text content.

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.