# Text vars and lockroot

**URL:** <https://forum.kirupa.com/t/text-vars-and-lockroot/220775>\
**Category:** Uncategorized\
**Created:** [March 29, 2007, 3:31am UTC](https://forum.kirupa.com/t/text-vars-and-lockroot/220775 "2007-03-29T03:31:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [March 29, 2007, 3:31am UTC](https://forum.kirupa.com/t/text-vars-and-lockroot/220775/1 "2007-03-29T03:31:10Z")

</div>

Hi  
I have used this simple technique to read a flv’s load process

```auto
onEnterFrame = function(){
text_var.load_text = (net_stream.bytesLoaded/ net_stream.bytesTotal)*100;
}

```

It works fine by itself  
as seen in [COLOR=#003366]#[/COLOR]  
but not when the swf is loaded onto the index stage.

but here it is if you goto [#](http://www.surfboards.net.nz)  
and click on the movieclip section.

cheers for any pointer
