# Oldie n00b - Help with Variables

**URL:** <https://forum.kirupa.com/t/oldie-n00b-help-with-variables/300145>\
**Category:** flash\
**Created:** [November 16, 2009, 9:43pm UTC](https://forum.kirupa.com/t/oldie-n00b-help-with-variables/300145 "2009-11-16T21:43:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazlostormaker](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@lazlostormaker](https://forum.kirupa.com/u/lazlostormaker)\
**Post date:** [November 16, 2009, 9:43pm UTC](https://forum.kirupa.com/t/oldie-n00b-help-with-variables/300145/1 "2009-11-16T21:43:35Z")

</div>

Hi,

I apologise now if the question I ask seems very basic, but the last time I programmed was 15 years ago using Blitz Basic on the Amiga!

If in a Flash AS3 project I have in Frame 1 on the main timeline the following actionscript:

[COLOR=blue]var[/COLOR] drags:[COLOR=blue]Boolean[/COLOR] = [COLOR=blue]true[/COLOR];

then I have a movieclip symbol placed on the stage with this on it’s frame 1:

[COLOR=blue]trace[/COLOR] (drags);

why do I get this error:

1120: Access of undefined property drags.

I was thinking that its a path thing, and have tried [COLOR=blue]trace[/COLOR] (parent.drags);

and then I get the following error:

1119: Access of possibly undefined property drags through a reference with static type flash.display:DisplayObjectContainer.

I will be really grateful if someone can point me to the solution of how to remove these errors and reference the variable from either objects.

Thanks

Terry :}
