Skip to main content
Participant
May 25, 2009
Question

Document Class, and Accessing Properties.

  • May 25, 2009
  • 1 reply
  • 423 views

I'm currently working on an interactive app, (site) which requires me to modify a few textfields, and change images dependant on the user choice (using mouseevent). This is a separate module, thus I'm posting the question in here instead:

there are three images, that are lined up, with a textbox next to them. When a image is chosen, and enlarges, the text changes with the chosen image, according to XML.

The textFields, 'text_title', 'text_description' are contained in a movieclip, called 'textbox'.

This has been built in the Flash IDE (CS3) named info.fla/swf, which refers to a Document class 'com.info', made in Flex Builder 3...

I attempted to modify the textfields using this:

textbox.txt_title.text = "Loading";

textbox.txt_desc.text = "test";

But, I was unable to at first to change the text using the document class, as it gives "1120: Access of undefined property <variable>".

I personally trying to stay away from emdedding symbols and placing everything manually using pure actionscript 3.0, as,

previously noticed it took too long to do, even if it worked more efficiently than the rest.

Is there something I'm doing wrong?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 25, 2009

are the textfields name txt_title and txt_desc or text_title and text_desc?

is that the exact error message?  if so, is <variable>  used somewhere?

Participant
May 26, 2009

Thanks, I should have looked more carefully, the textfield values were correct, but the textbox wasnt. it was TextBox instead of textbox.

kglad
Community Expert
Community Expert
May 26, 2009

you're welcome.