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!

Dynamic Text

Status
Not open for further replies.

scottyjohn

Technical User
Nov 5, 2001
523
GB
Hi Guys & Gals!

This seems to be such an easy thing to do but I cant work out how to refernce a text file and load it into a dynamic text box.

Can anyone point me in the right direction?

Hope this helps
John
 
When you create your dynamic text box, make sure that you give it a variable reference.

Then use a loadVariabes command to get the text file into the movie:

Code:
loadVariablesNum ("yourtextfile.txt", 0);

Make sure that the content of your text file actually references the variable of the box into which you want the text to appear. So if you gave your dynamic text box the variable name _root.mytext , then in order for your loaded text to work properly the contents of the text file must be something like:

&mytext=blah blah blah blah&

...use ampersands to separate variables in your text file.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Still not gettin it Dave sorry.
Does that mean that the text in the actual text file has to be written specifically for this with all the ampersands and stuff?
I am a real newbie to this dynamic stuff so thanks foir the Help mate!

Hope this helps
John
 
I'm afraid the variable does have to represented in the form &mytext=blah&. Obviously 'mytext' can be whatever you want, as long as it is the same as the variable you gave to your dynamic text box.

You don't need the ampersands if you're only loading in a single variable, but you do need the mytext= part of it, otherwise the flash movie will assume that the text IS the variable rather than the contents of the variable.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top