Accessing dynamic text in a movieclip

I have a movieclip of instance name “menuBtn”. And within the movieclip itself, I have a dynamic text on it named “btnName”.

How do I access the dynamic text in the main timeline?

I tried menuBtn.btnName.Text = “something” and it doesn’t work.
btnName.Text = “something” doesn’t work either.

So, can someone tell me the correct way to access it?

I’m not sure whether it’s relavent but it might be because your’e spelling it as Text instead of text. Otherwise it’s probably an issue of relativity, to make sure your adressing it right use the lil button on the actions toolbar (insert target path) and itll put in the right adress for you.

Yeah, Tofu is right on the money, the text property of the textfield object is called ‘text’ and not ‘Text’…I’m 100% sure that thát’s the problem. Good point :slight_smile:

menuBtn.btnName.text = “something”;
this.menuBtn.btnName.text = “something”;

And you can always use ‘insert a target path’ to get the right name. (the little circle with a + through it, on top of the actions panel).

Thanks, yah it’s case sensitive.