# \[question\] using addChild?

**URL:** https://forum.kirupa.com/t/question-using-addchild/316726
**Category:** flash
**Created:** [December 1, 2010, 5:05am UTC](https://forum.kirupa.com/t/question-using-addchild/316726 "2010-12-01T05:05:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pelevet](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Pelevet](https://forum.kirupa.com/u/Pelevet)
#### Post date: [December 1, 2010, 5:05am UTC](https://forum.kirupa.com/t/question-using-addchild/316726/1 "2010-12-01T05:05:35Z")

</div>

I am not having fully knowledge about ObjectDisplay abstract class.

i have a timer class that i instantiate to use in my ‘my menu’ interface to do some action

like when i press button it runs 30 secs then when its done it says ‘done’ in output.

i want timer class to also add an object to the stage… like its a created creature after 30 seconds passes for example. but it seems impossible to use addChild anywhere else but in document class why ? and how can i overcome that ?

if i just try it it gives the following error  
C:\Documents and Settings\Pelevet\Desktop\Flash\_timer.as, Line 33 1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:DisplayObject.

solutions ?  
thanks
