I’d like to ask if there’s any way to do the following:
I have a document class called Application. Inside it i create a TestObject
this.test = new TestObject();
suppose the TestObject initializes and it needs to fetch some values from Application.
can i do that without
- passing the values to the class when creating the instance (eg: this.test = new TestObject(this.requiredValue); )
or
- waiting for ‘test’ to be added to the stage (with an event listener)
please let me know what you think,
Z.