[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]