- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 6-7 years
- Netherlands
- Referred between 50 and 99 users
- Sold between 1 000 and 5 000 dollars
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.
btns[i].movieClip.txt.text = xml
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 6-7 years
- Netherlands
- Referred between 50 and 99 users
- Sold between 1 000 and 5 000 dollars
That’s what I did, but that didn’t seem to work. Guess my problem lies somewhere else.
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
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…
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 6-7 years
- Netherlands
- Referred between 50 and 99 users
- Sold between 1 000 and 5 000 dollars
Sorry guys I found the mistake, very dumb typo. Sorry to bother you guys, but thnx for the help anyway!
