# As3 Variables Question

**URL:** https://forum.kirupa.com/t/as3-variables-question/315016
**Category:** flash
**Created:** [October 14, 2010, 11:37pm UTC](https://forum.kirupa.com/t/as3-variables-question/315016 "2010-10-14T23:37:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gunstar\_Hero](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@Gunstar\_Hero](https://forum.kirupa.com/u/Gunstar_Hero)
#### Post date: [October 14, 2010, 11:37pm UTC](https://forum.kirupa.com/t/as3-variables-question/315016/1 "2010-10-14T23:37:20Z")

</div>

Quick questions, is there anyway to create and define a variable in a child from the parent?

For example, if I add a child to the stage with code, and then want to be able to say  
child.variable=0  
to create a variable in the child and be able to edit and read the variable. I know the above code is way off but it’s just to kinda get the point through.  
Any ideas? I have to define the variable this way, so, no major of-road alternatives please 😃
