Valhalla Legends Forums Archive | Web Development | [Flash] External Files

AuthorMessageTime
ObsidianWolf
Does anyone know how to load an external text document into Flash? Im Using Flash MX 2004 Pro?

Ive Tried the Following
[code]
on (press) {
   gotoAndPlay("Home");
      loadVariablesNum("home.txt","HomeContent");
   }
[/code]

That creates another instance of my browser with the content of Home.txt

I have read multiple tute's for Flash that say i should just do:

[code]
on (press) {
   gotoAndPlay("Home");
      loadVariablesNum("home.txt","_root.HomeContent");
   }
[/code]
which doesnt work.

Can anyone help me?
December 8, 2003, 2:55 PM
RyanIdium
is _root.homecontent definded as a variable?
December 9, 2003, 3:45 AM
Telos
I think that you should not have the quotes around the name of the object you are trying to load the text into. So it would be like loadVariablesNum("home.txt", _root.HomeContent);
December 9, 2003, 3:04 PM
RyanIdium
[quote author=Telos link=board=22;threadid=4145;start=0#msg34437 date=1070982284]
I think that you should not have the quotes around the name of the object you are trying to load the text into. So it would be like loadVariablesNum("home.txt", _root.HomeContent);
[/quote]
thats probley right.
December 9, 2003, 9:11 PM

Search