dimanche 29 novembre 2015

How to turn a shape into a button AS3

I have started making an advent calendar using the adobe flash professional software. I have drawn each 'door' individually with the draw tool on separate layers. I need to know how to use action script to wait for a click on one of the doors and then goto a specific layer and stop. I have tried different methods such as

button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

but it throws up errors. Any ideas would be appreciated. Thanks

Aucun commentaire:

Enregistrer un commentaire