# How do you do that?

**URL:** <https://forum.kirupa.com/t/how-do-you-do-that/250533>\
**Category:** flash\
**Created:** [January 30, 2008, 11:21am UTC](https://forum.kirupa.com/t/how-do-you-do-that/250533 "2008-01-30T11:21:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pallzoltan](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pallzoltan](https://forum.kirupa.com/u/pallzoltan)\
**Post date:** [January 30, 2008, 11:21am UTC](https://forum.kirupa.com/t/how-do-you-do-that/250533/1 "2008-01-30T11:21:37Z")

</div>

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

1. passing the values to the class when creating the instance (eg: this.test = new TestObject(this.requiredValue); )

or

1. waiting for ‘test’ to be added to the stage (with an event listener)

please let me know what you think,  
Z.
