381 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
Yvo says

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.

291 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United States
sonicsight says
you have to refer to the text of the text field
btns[i].movieClip.txt.text = xml
381 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
Yvo says

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

124 posts
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
NnielsS says

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

1955 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
Emroni says

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…

381 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 1 000 and 5 000 dollars
Yvo says

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

by
by
by
by
by
by