actionscript 3 - How to use variables from other classes? -


so if i'm making boolean variable saying 1 class. , setting true;

class 1

yes = true; 

and boolean variable goes class 1 class 2, , class 2 applies action.

class 2

if (yes) {     } 

how do this? can give me formula? thanks.

provided a variable of type class1, instantiated , accessible in class2 simple

if (a.yes) { do_this(); } 

should trick.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -