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.