# Trouble passing variables

**URL:** <https://forum.kirupa.com/t/trouble-passing-variables/237970>\
**Category:** Uncategorized\
**Created:** [September 5, 2007, 11:57pm UTC](https://forum.kirupa.com/t/trouble-passing-variables/237970 "2007-09-05T23:57:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lost\_Soul](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@Lost\_Soul](https://forum.kirupa.com/u/Lost_Soul)\
**Post date:** [September 5, 2007, 11:57pm UTC](https://forum.kirupa.com/t/trouble-passing-variables/237970/1 "2007-09-05T23:57:56Z")

</div>

[FONT=Trebuchet MS]I’m having trouble passing variables. [/FONT]  
[FONT=Trebuchet MS]I’d paste some code, but don’t know if that’s really the best way to explain the problem since I’m using multiple packages.[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]…so instead here’s the hierarchy:[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]DocClass \> Game \> moveX[/FONT]  
[FONT=Trebuchet MS]DocClass \> Stars \> Star \> varX[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]How can I pass the value of moveX to varX?[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]I the old way would simply be varX = \_parent.\_parent.Game.moveX [/FONT]  
[FONT=Trebuchet MS]…but now that throws up a “1119: Access of possibly undefined property Game though a reference with a static type flash.display:DIsplayObjectContainer” error.[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]Don’t get it…yet[/FONT]  
[FONT=Trebuchet MS] [/FONT]  
[FONT=Trebuchet MS]Please help![/FONT]
