jeudi 30 juin 2016

Modify a variable when an event is triggered in AS3

I am trying to code a simple notification class in as3, it as just two buttons, one for "ok", one for "cancel", so there is one event listener for each buttons.

The problem is that I want a variable to be passed from the main class to the notification class, then to be returned to the main after one of the eventListener has been triggered by the user.

I have tried differents things but no one seems to work, I am sure there is a common and simple way to do that but I am new to the language.

Thanks, and sorry for my english.

Aucun commentaire:

Enregistrer un commentaire