mercredi 23 décembre 2015

Why onPress function doesn't Work?

Here is my code :

stop();

btn_start.onPress = function() 
gotoAndStop("gameon")

I have An error and it sounds like: "

Access of possibly undefined property onPress through a Reference with static type 
flash.display:SimpleButton.

I converted the text into a Button, I gave him an id, I don't know what to do, don't judge, I'm begginer.

Thanks!

Aucun commentaire:

Enregistrer un commentaire