# How to tween dynamic text?

**URL:** <https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099>\
**Category:** flash\
**Created:** [August 8, 2002, 2:53pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099 "2002-08-08T14:53:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathanhe](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jonathanhe](https://forum.kirupa.com/u/jonathanhe)\
**Post date:** [August 8, 2002, 2:53pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/1 "2002-08-08T14:53:10Z")

</div>

I load dynamic text from a .txt file and it works fine. However, I cannot add any tween to the dynamic text field. I tried to use F8 to insert the text field as a symbl and add a tween for the symbol, however, the text cannot be loaded in after I made the change.

Can anyone help me look at this problem? The .fla and text file can be found:

[http://www.dartmouth.edu/~hyjin/flash/dtext.zip](http://www.dartmouth.edu/~hyjin/flash/dtext.zip)

Thanks a lot!

---

<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:** [August 8, 2002, 3:01pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/2 "2002-08-08T15:01:08Z")

</div>

ok … you were right about the symbol. it does need to be changed. sometimes i have problems converting things to symbols from the stage especially variable elements or buttons so i usually just “insert \> new symbol” from the start and save myself the hassle.

as far as your dynamic text not loading thats b/c in your first fram you have an onLoad command that tells flash to load the text into the textfield. you’ve told it the file name that you want it to load but when you specified where to load it to on the main frame that was fine. now its in a symbol that symbol has an instance on the main stage so you need to change the path in your code to reflect that move.

i.e. before your code was going to “textBox” now it needs to go to “symbolName.textBox”.

make sense?

once you have it in a symbol and functioning properly you should be able to apply tweens to the symbol.

---

<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:** [August 8, 2002, 3:14pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/3 "2002-08-08T15:14:33Z")

</div>

Thanks a lot, shuga.

I did try to add the symbol name (textMC) in my flash file and I also insert a new symbol using Ctrl+F8, however, it still doesn’t work.

The new .fla file can be found:

[http://www.dartmouth.edu/~hyjin/flash/dtext.zip](http://www.dartmouth.edu/~hyjin/flash/dtext.zip)

---

<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:** [August 8, 2002, 6:56pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/4 "2002-08-08T18:56:29Z")

</div>

i would love to look at it but unfortunately i’m at work so i cant see mx files b/c we havent gotten it in yet. all i have is flash 5 here … so if you want you can save it in flash 5 format _file \> saveAs_ or i’ll take a look at it when i get home tonight … b/c i have mx at home.

have a nice day:)

---

<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:** [August 8, 2002, 7:25pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/5 "2002-08-08T19:25:16Z")

</div>

Again, thanks a lot, Shuga.

Here’s the flash 5 documents:

[http://www.dartmouth.edu/~hyjin/dtext5.zip](http://www.dartmouth.edu/~hyjin/dtext5.zip)

Enjoy the rest of the day! 🙂

---

<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:** [August 8, 2002, 8:40pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/6 "2002-08-08T20:40:14Z")

</div>

_shrug_

i tried everything i could think of but it doesnt work.

i dont understand why you’re loading a variable and specifying a frame in your code and i also dont understand why you give the load command both on the first frame of the movie and the first frame of the movie clip (symbol)

---

<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:** [August 9, 2002, 1:05am UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/7 "2002-08-09T01:05:49Z")

</div>

Anyways, thank you very much for your time!!! 🙂

---

<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:** [August 9, 2002, 3:00pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/8 "2002-08-09T15:00:53Z")

</div>

It doesn’t work, because of 2 reasons:

1 - loadVariablesNum is the wrong command. It’s loadVariables.  
2 - textMC.loadVariables only works, if the INSTANCE of the movieclip has that name.

So change the command and name your movieclip-instance textMC and you’re done.

Cheers,  
Cycom

---

<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:** [August 9, 2002, 3:50pm UTC](https://forum.kirupa.com/t/how-to-tween-dynamic-text/1099/9 "2002-08-09T15:50:11Z")

</div>

omgosh … duh

thx for thinking of that … apparently i had an “i am sofa king we todd did” moment

thx

p.s. if you don’t get the sofa king referrence … read the sentence outloud several times until you laugh. then you will get it 🙂
