Interactivity with buttons


  1. Create two (or more scenes) with animation
  2. On scene 1 create a layer and name it "button" and insert a button on the stage
  3. Insert button on stage: Go to Window =>Common Libraries =>Buttons (choose a nice button)
  4. Select last frame of that layer => Click F9 => Select code snippet "Go to next scene and play"
  5. Create another layer and name it "stop"
  6. Select last frame of that layer =>hit F9 => Write stop code stop( );
  7. ON second scene do the same steps. BUT choose for code snippet Go to previous scene and play
  8. Try out your buttons. Your buttons should switch between the scenes.
  9. Done!


Teachers exemplar