Also talk about the [Connect movie] feature in Flash MX

Source: Internet
Author: User
Tags insert connect

Wen/Kimberlin

1. The realization of courseware structure

In the course of teaching, a class is usually divided into several modules, in the courseware production can make a few scenes, and then in the home scene using the button to connect. This makes the courseware structure clear, the modification is convenient. For example, in the production of courseware "Lotus said", a total of "new curriculum introduction, genre author, new course teaching, reading training, ability training, layout homework, quit the classroom" 7 modules. We use the "New curriculum introduction" as an example to illustrate.

(1) Create a new MC, name M1, enter its edit state, insert a blank keyframe in the first frame, and add a "Stop ()" Code, starting with the second frame to design the contents of the "New lesson import".

(2) The same method, the design of several other modules of the MC. Note that the first frame must be a blank keyframe, and add the "Stop ();" Code.

(3) Go back to the main scene, open the library, drag M1 to the center of the main scene, and enter "XK" in the Instance Name box below.

(4) Add the following ActionScript in the "New Lesson import" button:

On (release) {

Telltarget ("XK") {

gotoAndPlay (2);}

}

This completes the connection of the movie.

(5) The same method, set the other module's movie connection.

2. Realization of interactive function

Using the above method, we can also realize the interactive function of courseware, and we choose the example to illustrate.

(1) The menu "insert→new symol" command to create 5 buttons, one button for the correct answer to the choice question, 3 buttons for the wrong answer, the other is the return button.

(2) Create a new MC, named "ZT", into its editing status, insert blank keyframes in the first frame, design the correct answer information for the second frame, design the wrong answer information for the third frame, and add the "Stop ()" code in each frame action.

(4) Go back to the main scene, enter the selection question, and drag and drop the 4 selections in the library to the appropriate location. Also, drag ZT to the appropriate location in the scene and enter "FK" in the Instance Name box below.

(5) Add the following ActionScript to the correct answer button:

On (release) {

Telltarget ("FK") {

gotoAndPlay (2);}

}

Feedback the correct answer information;

Add the following ActionScript to the wrong answer button:

On (release) {

Telltarget ("FK") {

gotoAndPlay (3);}

}

Feedback error answer information.

Finally press the "Ctrl+enter" key to test the movie effect.



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.