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.
2. Pull the button you created into scene "1". A transparent button is used here.
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.
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.
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!