# Dynamic text field in embedded movie

**URL:** <https://forum.kirupa.com/t/dynamic-text-field-in-embedded-movie/301957>\
**Category:** flash\
**Created:** [December 18, 2009, 10:16am UTC](https://forum.kirupa.com/t/dynamic-text-field-in-embedded-movie/301957 "2009-12-18T10:16:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brobs](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@brobs](https://forum.kirupa.com/u/brobs)\
**Post date:** [December 18, 2009, 10:16am UTC](https://forum.kirupa.com/t/dynamic-text-field-in-embedded-movie/301957/1 "2009-12-18T10:16:50Z")

</div>

Hi I have main timeline and then have a small movie clip in which there is a dynamic text box and my actionscript.

```auto
myVars = new LoadVars();
myVars.load("http://preview.domain.co.uk/inc/loadVars.php");

myVars.percentage

myVars.onLoad = function() {
    text_box.text = this.percentage;
};

```

but when I play the movie it doesn’t work. However if I move the dynamic textbox onto the main timeline along with my actionscript it works.

Please can someone help i need to get this working asap
