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

Flash reading data from text file how to

Status
Not open for further replies.

alekseis

Programmer
Jun 2, 2007
6
PH
Hi im totally new to flash im wondering if is there a way flash can read thru the data inside a text file and store those data in its local memory for later use? any help ,advice tutorials on how to do this would surely help.

im trying to make my C# program to communicate with flash thru the text file. thank you
 
actionscript goes like

_lv = new LoadVars();
_lv.onLoad = function(){
myVar1 = this.var1;
myVar2 = this.var2;
}
_lv.load("myvars.txt");


myvars.txt will look like

&var1=Bill
&var2=4
 
wow, thanks for that, im trying to learn both flash and actionscript at the same time, could you please tell me what to focus on? what i need is this:

i will create a program in flash which contains nodes connected with lines, i would like to know a way to reference those nodes.

now every 10 secs my flash checks the text file for the variables coming from C#. the text file is what my flash will reference to know what nodes will change color (properties). then publish this into a jpeg file. everything is automated. no user interaction in flash.

kindly point me to the direction of what material should i study to accomplish this task. thank you.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top