PDA

View Full Version : Dynamic TextBox, XML & MovieClips on my.


Arthur005
09-29-2005, 04:36 AM
I’ve tried to find the answer to this problem but after a few forums and some weeks haven’t found anything. When loading xml data from a file the data won’t show up but when I trace the textbox it sell it say it is the values from the xml file but the aren’t showing up in the textbox.

Example

Mc1.Mc2["btn" + _l1].txt = web[_l1]; :mad:

If I trace this before loading the xml data it has the values that have been type in. After the above script executes it says it is what I was trying to set it to but the text doesn’t so up why? Is there something simple I am missing to make this work because I know it can be done. :confused:

Thank you for any help.

edacsac
10-02-2005, 03:40 AM
Man.... I am having the exact same problem that I posted here yesterday. I'm guessing your creating your buttons with attachMovieClip or something similar? The only clue I've been able to uncover while troubleshooting this in my case with similar code, was to take:

_root.main["button"+i].textBox.text = myCaption[i];

and any other propery assignments, and droping the second movie clip:

_root["button"+i].textBox.text = myCaption[i];

then test scene from "main" symbol, or what would be Mc2 for you, and having the text show up. Granted the buttons aren't where they're suppost to be, but the text did show up. I thought it was some kind of scope issue, but now I see that I'm not the only one, and I'm getting worried that this may be a buggy thing.

Take a look at My Thread (http://www.actionscript.org/forums/showthread.php3?t=85371&highlight=textbox) , and maybe you will gleen something out of it.

Sorry I don't have a solution for you though...