# Qustion about text

**URL:** <https://forum.kirupa.com/t/qustion-about-text/262759>\
**Category:** Uncategorized\
**Created:** [June 9, 2008, 6:03pm UTC](https://forum.kirupa.com/t/qustion-about-text/262759 "2008-06-09T18:03:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![findAll](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@findAll](https://forum.kirupa.com/u/findAll)\
**Post date:** [June 9, 2008, 6:03pm UTC](https://forum.kirupa.com/t/qustion-about-text/262759/1 "2008-06-09T18:03:30Z")

</div>

I was wondering if there is any possibility to get bytes of an xml loaded text into a dynamic textfield that’s inside a movieclip. So, let’s say I have a movieclip that has the instance name movie (inside of it are two layers: a background layer and a text layer) and the dynamic textfield inside it is textfield. For

```auto

var total = movie.getBytesTotal();
trace(total);

```

the output is a value like, let’s say, some hundreds of bytes. For

```auto

var total = movie.textfield.getBytesTotal();
trace(total);

```

the output is “undefined”.  
The same happens for getBytesLoaded() - for movie.getBytesLoaded(); the output value is identical with the value of movie.getBytesTotal();  
I want to do this because I want to preload the loading of that \*.txt file. I also mention that the \*.txt file has some html behavior (of course, textfield.html is set to true), I mean inside the \*.txt file there are \<img src="…"\> tags for images in the text. When I simulated download, for larger \*.txt files with 4-5 images in it, it takes a while to load so, I prefer to preload that somehow. Is there any possibility to do that?  
Please give me a clue…

---

<div class="post-metadata">

**Author:** ![findAll](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@findAll](https://forum.kirupa.com/u/findAll)\
**Post date:** [June 11, 2008, 9:26pm UTC](https://forum.kirupa.com/t/qustion-about-text/262759/2 "2008-06-11T21:26:05Z")

</div>

So?
