Search  

DYNAMIC TEXT FIELD

HomeForumsHelp NeededDynamic text field
38812 Yvo
112 posts
Exclusive author Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

Ok guys, I ran into this problem before and alway manage to find a way around it.

I’m messing around with an XML menu. Usually I make a button movieClip in which there is a dynamic text field and I give it an instance name of txt or something. In this case I have no problem setting the text of that text field to what is read from the XML file. Something like this: btns[i].txt = ...Here what I read from the XML …

Now if I make a button movieClip and I make another movieClip inside this button movieClip (let’s call it inside for now) and inside that movie clip I place the dynamic textfield with an instance name txt. Can I just do this: btns[i].inside.txt = ...Here what I read from the XML …

Cause this doesn’t seem to work for me and I was curious to know if it is possible at all. If it is, then I’m doing something else wrong. But if it isn’t possible, then I don’t have to look any further.

Cheers in advance!

Extra: btw don’t know if it’s important but anyways. The btns[i] is an instance of a btn (button of course) movieclip which is attached to the stage using the attachMovie method.

Posted 2 months ago
34445 sonicsight
231 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items
you have to refer to the text of the text field
btns[i].movieClip.txt.text = xml
Posted 2 months ago
38812 Yvo
112 posts
Exclusive author Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

That’s what I did, but that didn’t seem to work. Guess my problem lies somewhere else.

Posted 2 months ago
40501 NnielsS
72 posts
Referred at least one person Sold between 1 and 100 dollars

Well actually you did it just the way I would. I never had the problem like this before, but I also know that even a little typing mistake can mess everythin up.

I suppose you go over that section again- the syntax is right, I think.

greets, nnielss

Posted 2 months ago
36416 Emroni
160 posts
Sold between 100 and 1 000 dollars Bought between 1 and 9 items

For what I have experienced with textfields within buttons, is that they dont duplicate. So Im not sure that this applies to what you did, but could you check if there is a textfield to begin with? You can do this by just typing something in there, and then do your attachmovieclip thing.

If nothing appears on screen, while you did type something, this means that the textfield is not being duplicated…

Posted 2 months ago
38812 Yvo
112 posts
Exclusive author Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

Sorry guys I found the mistake, very dumb typo. Sorry to bother you guys, but thnx for the help anyway!

Posted 2 months ago