# Root reference

**URL:** <https://forum.kirupa.com/t/root-reference/303578>\
**Category:** Uncategorized\
**Created:** [January 22, 2010, 4:18pm UTC](https://forum.kirupa.com/t/root-reference/303578 "2010-01-22T16:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkzai](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@arkzai](https://forum.kirupa.com/u/arkzai)\
**Post date:** [January 22, 2010, 4:18pm UTC](https://forum.kirupa.com/t/root-reference/303578/1 "2010-01-22T16:18:21Z")

</div>

hello I’m trying to reference to var “work:Boolean” from a number of movieclips on stage like this:

this.addEventListener(Event.ENTER\_FRAME, play\_work);

function play\_work (e:Event):void {  
if (MovieClip(root).work == true) {  
play();} else {stop();}  
}

everything works fine but when i go to a diffrent  
I’m getting the very annoying error #1009  
please help me  
thanks ;D
