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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new movie won't load variables from txt file 1

Status
Not open for further replies.

eljacobs

Programmer
Oct 13, 2003
47
GB
Hi

Got an annoying problem which is probably easily solved but i'm new to this stuff so maybe you can help.

I have a movie (lets call it movie a) that loads variables from a txt file called answers.txt into dynamic text boxes. So far so good.

I have a swf file (movie b) that also displays text from the same txt file and that works fine too.

The problem occurs when I load 'movie b' into 'movie a' using loadMovie. The dynamic text box in 'movie b' does not display the text from the .txt file.

What am I doing wrong??

Thanks in advance

Elliot
 
thanks for the fatastic response time.

i'm using loadVariablesNum in MX 2004. the code in movie 2 is actually:

loadVariablesNum("exemplar_variables.txt",0);

Elliot
 
Ok! That's fine although you should really get into using the LoadVars() object.
Now since your loading your variables on the main _root level (0), simply add that reference to your variables's name in the VAR box of your textfield.
Thus assuming your variable's name in the movie b's textfield box was my_var, make it _level0.my_var instead, and it should work as a charm!

Regards. Affiliate Program - Web Hosting - Web Design
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top