• Welcome to Valhalla Legends Archive.
 

[Flash] External Files

Started by ObsidianWolf, December 08, 2003, 08:55 AM

Previous topic - Next topic

ObsidianWolf

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

Ive Tried the Following

on (press) {
   gotoAndPlay("Home");
      loadVariablesNum("home.txt","HomeContent");
   }


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:


on (press) {
   gotoAndPlay("Home");
      loadVariablesNum("home.txt","_root.HomeContent");
   }

which doesnt work.

Can anyone help me?

RyanIdium

is _root.homecontent definded as a variable?

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);

RyanIdium

Quote from: Telos on December 09, 2003, 09:04 AM
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);
thats probley right.