# \[FMX\] Trying to Animate a dynamically loaded Text

**URL:** <https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234>\
**Category:** Uncategorized\
**Created:** [July 21, 2003, 6:52am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234 "2003-07-21T06:52:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tipusultan](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tipusultan](https://forum.kirupa.com/u/tipusultan)\
**Post date:** [July 21, 2003, 6:52am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/1 "2003-07-21T06:52:32Z")

</div>

Hi there, I am trying to emulate the [http://www.fastpay.com/common/images/text1a.gif](http://www.fastpay.com/common/images/text1a.gif)

except with an external txt file for the animation to read from. … is this possible to do with flash, i have read a cuple of tutes, but haven’t been able to get it working…

Here is what i have so far, I created a dynamic text box and can read in the text using

loadText = new loadVars();  
loadText.load(“hello1.txt”);  
loadText.onLoad = function() {  
Txt.text = this.Txt;

};

Txt being the name of the instance of my text box…

but see when i try to make this into a symbol or clip, and animate it, i dont see the text anymore ☹

can anybody help? plz ?

Thanks a lot in advance for anybody who can help…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2003, 8:09am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/2 "2003-07-21T08:09:37Z")

</div>

set the dynamic text’s character settings to “All Characters” and try again…

e.s.x.s

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2003, 2:33pm UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/3 "2003-07-21T14:33:59Z")

</div>

Hey

That didn’t work either,… but thanks for the reply… see whenever I try to convert that box into a movieclip it doesn’t show the text anymore…

Can any experts help on this maybe?

Thank again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2003, 12:39am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/4 "2003-07-22T00:39:41Z")

</div>

Hi, I stil haven’t been able to figure out this, and was wondering if anybody atleast any ideas?

this what i have come up with so far…

\_root.text\_mc.\_visible=false;  
//loads in and deals with the loaded text  
loadVarsText = new loadVars();  
loadVarsText.load(“hello.txt” );  
loadVarsText.onLoad = function(success) {  
if (success) {

```
 textHolder= new Array();

```

//‘myWord’ is what i named the text as in the .txt file  
textHolder = \_root.myWord.split(":" );  
x=textHolder.length;

```
     for (i=0; i&lt;=x; i++) {
      _root.text_mc.duplicateMovieClip ("letter_"+i, i);
      _root["letter_"+i].input = textHolder[i-1];

```

//spaces them out evenly, one on top of the other  
if (i != 1) {  
_root["letter_"+i].\_y = _root["letter_"+(i-1)].\_y+_root["letter_"+(i-1)].\_height+10;  
}  
}  
} else {

```
}

```

}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2003, 12:41am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/5 "2003-07-22T00:41:08Z")

</div>

it doesnt show up because you need to correct the path to the textfield.[AS]loadText = new loadVars();  
loadText.load(“hello1.txt”);  
loadText.onLoad = function() {  
text\_mc.Txt.text = this.Txt;  
};[/AS]Where _text\_mc_ is the instance name of the movie clip with the textfield inside.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2003, 12:59am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/6 "2003-07-22T00:59:47Z")

</div>

Hey Claudio thanks ALOT 🙂

I can’t believe i missed something so small, and went on to create some stupid long code… hehe

but really thanks alot,… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2003, 1:04am UTC](https://forum.kirupa.com/t/fmx-trying-to-animate-a-dynamically-loaded-text/26234/7 "2003-07-22T01:04:53Z")

</div>

No problem =)

You may want to check this 2 tutorials  
[http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp](http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp)  
[http://www.kirupa.com/developer/actionscript/tricks/root\_parent\_this.asp](http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.asp)
