Production of common technology Loading

Source: Internet
Author: User
2. Create Loading

If the index.swf file is large, it is necessary to design a loading guide viewer to wait patiently before it is fully imported. At the same time, the well-designed loading can also play a certain role in paving the way for websites in some cases.

The general practice is to first make loading into a MC, set the label such as end at the end of the scenario, and determine whether the download has been completed through ifframeloaded, if the download is complete, use gotoandplay to control the playback of the entire flash.

Taking a loading file as an example, insert MC in the scenario,

Ifframeloaded ("end "){
Gotoandplay ("where to start playing ");
}

3. Text Import

We often encounter a certain amount of text content to be reflected in the process of making a full flash website. The text content is the same as the process described above, the final performance and processing methods are different in different places.

Method 1: Text Graphics

This method can be used if there are not many texts and there is a hope that the text content can be compared dynamically. Make the required text into several flash components and arrange them at the corresponding positions. The file loading in the text graphics method is similar to the processing method described above, and the Principles are similar. The specific dynamic effects need to be considered by everyone. We will not discuss them here.

Method 2: Direct import

The upload import method allows you to import an independent TXT text file to a flash file through loadvariables. You only need to modify the TXT text content to modify flash-related files, which is very convenient.

Set in text box propertiesVaR: variable name (note this variable name).

Add ActionScript to the frame where the text box is locatedCode:
Loadvariables ("Variable name. Txt ","");

Compile a pure text file. txt (the file name is random). The text starts with"Variable name= "," = "Followed by the formal text.

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.