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
Post a Comment