Home  >  Article  >  How to make flash button jump scene

How to make flash button jump scene

angryTom
angryTomOriginal
2019-07-27 17:59:4414614browse

How to make flash button jump scene

Recommended tutorials: Frequently Asked Questions

When using Flash to create courseware or animations, In order to facilitate the management of different elements and timelines in the scene, we usually place different content in different scenes and realize the connection between scenes through jumps between scenes. Let’s talk about how to realize the connection between scenes through buttons. Jump between.

1. Use Flash to open the file to be edited, insert - create a new component, select the button type, change the name to jump (the name can be customized), click OK, and create the button.

How to make flash button jump scene

2. Pull the button you created into scene "1". A transparent button is used here.

How to make flash button jump scene

3. Select the join button, right-click the mouse - Action, and enter the jump code:

on (press) {     gotoAndPlay("2",1);     }

Note: Here, the first parameter in quotation marks in parentheses after gotoAndPlay is the scene name, and the latter parameter is which frame of the scene to jump to.

How to make flash button jump scene

4. Then click Control-Test Movie-Test. Do not click on the test scene when testing. The test scene can only test the current The effect of the scene and the effect of jumping to other scenes cannot be seen.

How to make flash button jump scene

The above is the detailed content of How to make flash button jump scene. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn