# Dynamic Text box nightmare FLASH MX

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852>\
**Category:** flash\
**Created:** [January 8, 2003, 11:28am UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852 "2003-01-08T11:28:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![siboy13](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@siboy13](https://forum.kirupa.com/u/siboy13)\
**Post date:** [January 8, 2003, 11:28am UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/1 "2003-01-08T11:28:38Z")

</div>

I am probably being incredibly thick and not understanding depth, i am new to this!!

I thought the higher the depth number the closer to the viewer it was?

I have created a movie which pulls back info from a database, on the original movie, once all the data was loaded, i created the required number of dynamic text boxes on the \_root and everything worked perfectly.

I then decided that i would need to display other information on other movie clips. So i decided to turn the movie into a movie clip, so that i could create other movie clips and load these as needed.

I created a new blank movie, attached a blank movieclip(depth 0) as a container for the movie clips that will hold the different data, i then used attachMovie(depth 1) to attach the original movieclip, which holds the database info. I then changed the original movie, so that it would create the text boxes in this movie clip(depth 3), so that when i decided to load another movie, i don’t have to clear up text boxes on the root.

When i run the movie, i get the background image for the data movie clip, but i don’t see the text. I used trace to make sure that the text boxes were being created and the text values were assigned and they are. So why can’t i see the text???

Be as sarcastic as you like, if this is very easy, i just need the answer!!

Cheers

---

<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:** [January 8, 2003, 1:41pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/2 "2003-01-08T13:41:06Z")

</div>

I´m sure you´ll have this question (and all others you migh have in the future) fully answered, and I hope you stick around 🙂

about the question: I found it a bit confusing, but I can point you **a** problem, never load anything on level 0, this level is for the main movie, the one that all others will be loaded in to. Maybe this don´t fix all your problems, but it´s a good start.

Cheers :rambo:

---

<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:** [January 10, 2003, 9:20pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/3 "2003-01-10T21:20:52Z")

</div>

post the fla

---

<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:** [January 13, 2003, 11:47am UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/4 "2003-01-13T11:47:23Z")

</div>

eyez, I think we scared him, and he´s not coming back 😛

Was it something I said?:geek:

---

<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:** [January 13, 2003, 8:36pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/5 "2003-01-13T20:36:30Z")

</div>

YES!

> …and I hope you stick around

LOL

---

<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:** [January 14, 2003, 11:32am UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/6 "2003-01-14T11:32:57Z")

</div>

then it was my fault!☹

LOL  
😛 😛 😛

---

<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:** [January 15, 2003, 1:12pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/7 "2003-01-15T13:12:33Z")

</div>

Sorry haven’t been doing flash for a while, i had forgotten to check this.

I will do a dummy fla to show what i want to happen and then i will post that.

Sorry for the delay, nor tyring to waste your time honest!!!

---

<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:** [January 15, 2003, 1:53pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/8 "2003-01-15T13:53:55Z")

</div>

We´re just wondering about your absence and talking nonsese 😛

---

<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:** [January 15, 2003, 2:15pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/9 "2003-01-15T14:15:11Z")

</div>

Here is an example of what i am trying to do.

The problem lies with the nested\_mc, the text doesn’t show up.

---

<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:** [January 15, 2003, 2:21pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/10 "2003-01-15T14:21:00Z")

</div>

It is cool i have figured it out now.

This is the code that i have put in the nested\_mc:

this.createTextField(“test3”,0,300,150,300,25);  
test3.text =“this is the text from the nested\_mc”;  
start1 = new TextFormat();  
start1.size = 20;  
start1.color = (0xffffff);  
start1.align=“center”;

test3.setTextFormat(start1);

It wasn’t working before, i thought that the depth mattered??  
I thought when you created a new TextField through actionscript they all had to be at different depths?? Am i getting depths and things wrong??

Cheers

---

<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:** [January 17, 2003, 11:38am UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/11 "2003-01-17T11:38:25Z")

</div>

Ok i thought i had this sorted but i don’t, so more help is required.

In the real movie i am trying to pull back some info from a database, in this test fla i have substituted a text file in its place.

In the text file i have rsCount=Hello World, i then created a dynamic text box in the nested MC, and use loadVariablesNum to pull back the value. I can get this to work when i create the text box on the root, please tell me what i am doing wrong…

I think i am going to cry!!!

Cheers

---

<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:** [January 17, 2003, 3:23pm UTC](https://forum.kirupa.com/t/dynamic-text-box-nightmare-flash-mx/10852/12 "2003-01-17T15:23:38Z")

</div>

Panic over i have fixed it again, after much messing about,

i was using loadVariablesNum(“blahblah”,2) but when i was referencing the rsCount variable i didn’t realise that i had to use “\_level2.rsCount”. I had also forgot to put the code within onEnterFrame, so it was doing it once and so the variables were never being loaded.

Any info on whether there is a better way of doing this would still be appreciated.

Cheers
