AS the classroom FlashEmpire Record 3
Related Tags:
Teaching purposes:
1, the external master loading and unloading film clips;
2, loading film clip control methods.
Course preparation: In a new local disk folder t4, and the video clip to load 01. Swf, 01.jpg copied to the folder.
Material downloaded:
Click here to download the source files
Teaching process:
1, open FLASH, a new document, the Background is black.
2, select window - other panels - Public Library - Order button, drag the button to the lower right corner stage. We will use these two buttons for loading and unloading operations.
3, and save the file to t4 folder, document, entitled l4.

On (release) (
LoadMovie ( "01.swf" 1);
)
5, selected the red button in the script input District input sentence
On (release) (
UnloadMovie (1);
) 6, by Ctrl Enter test.
Explain:
Usage
LoadMovie ( "url", target [method])
Parameters
url to load the SWF files or JPEG files absolute or relative URL. A relative path must be relative to the level 0 SWF files. Absolute agreement must include the URL used, such as http:// or ftp://.
Video clips at the target goal of the path. Goals will be replaced by video clips loaded SWF files or images.
Method optional parameters specified variables used to send the HTTP method. The parameters must be a string GET or POST. If we do not send the variables, this parameter is omitted. GET variable method will be added to the end of the URL, it used to send a small number of variables. POST method in a separate HTTP headers send variables, it used to send a large number of variables.
Description function; player in the original SWF files at the same time, SWF files or JPEG files to loading in Flash Player.
Exercise: 1, the green button on the statement was revised to
On (release) (
LoadMovie ( "01.jpg" 1);
) Test to see what effect? Attention to the picture format.
2, will be the red button on the statement was revised to
On (release) (
UnloadMovie (0);
) Or on (release) (
UnloadMovie (this);
) Test will be to see what effect?
3, attention to the observation of film clips and picture position.
Through the above preliminary practice we have mastered how to load and unload the film clips. We summarize the following conclusions:
1, we can use loadMovie () function to load video clips or JPEG format images with unloadMovie () unloading.
2, we will be loading video clips to a specific layer, the default is registered in the upper left corner of the stage.
Below us to practice second method, external video clip loaded into a certain time frame in the video clip.
We need to use this approach in the first stage of the creation of a movie clip, and it has examples of abc.
We will green button on the statement was revised to
On (release) (
_root.createEmptyMovieClip ( "Abc", 1);
LoadMovie ( "01.swf", "abc");
) Red button on the statement also need to be amended accordingly
On (release) (
UnloadMovie ( "abc");
) Archiving test.
These two methods in the external load JPEG picture or video clips, very practical. If we have to load film clips to Flash Player in a level, they should use loadMovieNum () function, as we work for the after-school practice. We have to solve the second problem - how to define.
Loading the principles and methods of control, positioning it is relatively simple. If we use is a method - to loading layer, we need only adjust the coordinates of the location and size, if we use two methods - loading movie clip, we need only adjust the coordinates of the film clips location and size. Figuratively speaking just as we were in the wall frame, the video clip is loaded photos, as long as we adjust the frame size and location, the size and location of photos for the corresponding result of the changes.
Method 1: loading layer to the location of the adjustment
On (release) (
LoadMovie ( "01.swf" 1);
OnEnterFrame = function () (
_level1._x = 100;
_level1._y = 50;
_level1._width = 400;
_level1._height = 300;
);
Delete onEnterFrame;
) 2: loading movie clip Position adjustment
On (release) (
_root.createEmptyMovieClip ( "Abc", 1);
LoadMovie ( "01.swf", "abc");
OnEnterFrame = function () (
With (abc) (
_x = 100;
_y = 50;
_width = 400;
_height = 300;
)
);
Delete onEnterFrame;
) Because of the time rather tight, may be less stringent in some areas, we stay in practice dessert.
- Css layout in the middle of the problem
- Css layout of the site with 10-step Record! (7)
- CSS layout of the website use
- Css layout of the site with 10-step Record! (10)
- On div css layout
- Making Guide website: CSS page layout realization
- Using JavaScript record visits to the website
- DIV CSS layout examples: css layout of the site ten steps Record! (Directory)
- Css layout of the site with 10-step Record! (8)
- CSS layout website
- Css layout
- Css layout of the site with 10-step Record! (B)
- Css layout of the site with 10-step Record! (4)
- CSS layout entry [css]
- Css layout of the site with 10-step Record! (5)
- Css layout of the site with 10-step Record! (1)
- Css layout of the site with 10-step Record! (6)
- Small head of reference: Website record operational procedures
- Css layout of the site with 10-step Record! (C)
- Css layout of the site with 10-step Record! (9)
Ajax ready in the state, state code and type of request

In XMLHttpRequest in an attribute: readyState. This property has been completed to ensure that a server request will normally use a callback function in Douchushuju from the server to update Web pages or the content of the form. ReadyState There are five state code:...
Web2.0 to casual. . . .

All day today, almost a full scheduling meetings at night to attend training courses there. Know that the time is very pressing, but they are still indulge their ah. On the search to web2.0 things, search out most of the things I am not satisfied with 1,10. ...
Hidden in the website of the skills DIV

Div div can control the visibility of the display and hidden, but hiding after blank page: Style = "visibility: none;" Document.getElementById ( "typediv1"). Style.visibility = "hidden" / / Hide Document.getElementById (...
On the dynamic control input type = "image" objects

In the previous period to write Web Control, wrote a successor ImageButton controls, in the Page_Load later, Found in the Client-shows the <input type image id = javascript ...>, I used to do in front of control, Document.elements imageButton there is no such...
Flash MX 2004 produced video tutorial examples: "Huoyingrenzhe" the first cartoon production (1)

Article 53: "Huoyingrenzhe" the first cartoon production (1) Curriculum objectives: animation production Huoyingrenzhe titles Curriculum points: use Flash MX 2004 production "Huoyingrenzhe" cartoon first, the six-on examples, this is VI. ...