Noob question (probably). I have a class with a var textFieldObjets:Textfield
in my class environnement
What i’d like to do, is access this var from another class and change the text. I tried things like environnement.textFieldObjets.text = "blabla"; Got error 1119, Access of a possible undefined property textFieldObjets trough a reference with static type Class. I can’t even access my environnement class…
How could I do that? thx!
Make the variable a class member with
public staticidentifier.For more information on what
staticandpublickeywords mean, you could refer to this question: Actionscript 3: Can someone explain to me the concept of static variables and methods?Documentation from Adobe: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f30.html