View Full Version : Dynamic External File Access
Ok.... so... complicated enough title, simple enough question.
Can flash go to out to a folder, a website, whatever, copy the data from the file, and hold it as a string or whatever it may be while also updating whatever you want to show on screen?
so your thinking of making a news thingy?
Nah, actually, i'm trying to integrate flash and java to make a chat program for my school server...
But, since I can't run anything server side, I have to have each client independant of each other.
Nope, sorreh, you would have to depend on TBC on that one.
arkhan
02-07-2006, 03:43 AM
look in the flash help files for loadVars and setInterval
then you can experiment a bit, and if you cant get it working come back here..
The Brown Cow
02-07-2006, 10:25 AM
The loadVars and XML classes will be your friends.
Make a file named mydata.txt and type this in it:
myString=This is some text to display in Flash
In Flash, you can load it in with loadVars...
loader = new LoadVars();
loader.onLoad = function() {
trace(this.myString);
}
loader.load("http://mydomain.com/mydata.txt");
Yeah, I was going to tell that to Torrent, thats what you gave me for my news thing, but I suppose it would work for other loaders.
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.