# Reference DocumentClass var from within MovieClips Timeline

**URL:** <https://forum.kirupa.com/t/reference-documentclass-var-from-within-movieclips-timeline/322843>\
**Category:** Uncategorized\
**Created:** [June 5, 2011, 5:55pm UTC](https://forum.kirupa.com/t/reference-documentclass-var-from-within-movieclips-timeline/322843 "2011-06-05T17:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TehWut](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@TehWut](https://forum.kirupa.com/u/TehWut)\
**Post date:** [June 5, 2011, 5:55pm UTC](https://forum.kirupa.com/t/reference-documentclass-var-from-within-movieclips-timeline/322843/1 "2011-06-05T17:55:24Z")

</div>

I didn’t know how else to say it. In My DocumentClass, I have a public variable “canMove”. In this class I created an instance of “fighter” which is a child of the stage. Now, how could I acess “canMove” from within the timeline of “fighter”? I will provied more information if necessary. some searching reveals something like MovieClip(parent).varName or something but I just cant figure it out.

EDIT: I just want to set the public var “canMove” to false
