# Can't change dynamic text field with AS3

**URL:** <https://forum.kirupa.com/t/cant-change-dynamic-text-field-with-as3/298548>\
**Category:** flash\
**Created:** [October 20, 2009, 11:32pm UTC](https://forum.kirupa.com/t/cant-change-dynamic-text-field-with-as3/298548 "2009-10-20T23:32:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren884](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@darren884](https://forum.kirupa.com/u/darren884)\
**Post date:** [October 20, 2009, 11:32pm UTC](https://forum.kirupa.com/t/cant-change-dynamic-text-field-with-as3/298548/1 "2009-10-20T23:32:30Z")

</div>

I have my movie linked to an external AS3 file with this:

```auto
package com {
 
 import flash.display.MovieClip;
 import flash.display.Stage;
 import com.lobby;
 
 public class game extends MovieClip {
  
  public function game():void {
   
  }
 }
}

```

then in my lobby class file I have:

```auto
package com {
 
 import flash.display.MovieClip;
 import flash.display.Stage;
 
 public class lobby extends MovieClip {
  
  public function lobby():void {
   server_time.text = 'test';
  }
 }
}

```

however it gives me that server\_time doesn’t exist. I have tried root and parent… what am I doing wrong? Please help me understand the levels here.
