Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want, to get information from an external source and store it in a local txt file, so the latest price info can be used when offline. Any ideas as to how this can be done?

0
Posted

I want, to get information from an external source and store it in a local txt file, so the latest price info can be used when offline. Any ideas as to how this can be done?

0

Yes, just use the LoadVars object. Something like this var my_lv:LoadVars = new LoadVars(); my_lv.onLoad = function(success:Boolean) { if (success) { trace(this.toString());//show me the text //do soemthing else here like load the text into a text field } else { trace(“Error loading/parsing LoadVars.”); } }; my_lv.load( http://www.yousite.com/yourtextfile.txt”);//just use the URL to your text file here or you can use some server side scripting i.e php, asp etc. Once you have read the text, you can either save the text into a text file using JSave or JSystem – Savetofile command http://jsave.flashjester.com http://jsystem.flashjester.com Or even simpler use the Read/Write to the Windows Registry feature See Jugglor Help -> Advanced Techniques -> Read/Write Windows Registry That will help you get started.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123