-2

I am making a simple flash game. How would I make the user to go the next scene when the zombie is clicked?

enter image description here

The Codesee
  • 3,714
  • 5
  • 38
  • 78

1 Answers1

1

Create a symbol out of the zombie, call it whatever you want. Then write this code:

yourZombieName.addEventListener(MouseEvent.CLICK, clickZombie);

function clickZombie(evt:MouseEvent):void {
    gotoAndStop(1, "yourSceneName");
}
helloflash
  • 2,457
  • 2
  • 15
  • 19
Skalk
  • 53
  • 1
  • 1
  • 9