Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I read the value of a dinamic text to another var ?

Status
Not open for further replies.

ivelton

Programmer
Mar 12, 2002
7
AU
I have one dinamic text (named moviename) the needs to read a value from the text.

I load the text file using :
loadVariablesNum ("movies.txt", 0);

this work fine, the dinamic text on the screen shows the right value from the txt file

the problem is , in the following line I need to use the text value to open a movie clip, using something like :

loadMovie(moviename, 0);

it doesn't work.
even if I use trace(moviename) it doesn't display the text field value, but only the text field name

I've tried to access the text value using :
trace(moviename);
trace(moviename.value);
trace(moviename.String);

and doesn't work;

Somebody knows a way to read the value of a dinamic text field ?

Thank you very much for the help

Ivelton









 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top