[Flashcoders] how to read a plain text file
In AS2, is it possible to read in a plain text file. I've used LoadVars and XML.load(), but in this instance I want to read all of the data into a single variable. All I can think of is using a php script to url encode the text. I.e. echo ("txt=".urlencode(fread ($file, filesize ($filename; But, is there a way to read the file directly into Flash? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how to read a plain text file
Hi, yep use the onData instead of onLoad for loadvars. greetz JC On 9/7/07, Andrew Sinning <[EMAIL PROTECTED]> wrote: > > In AS2, is it possible to read in a plain text file. I've used LoadVars > and XML.load(), but in this instance I want to read all of the data into > a single variable. All I can think of is using a php script to url > encode the text. I.e. echo ("txt=".urlencode(fread ($file, filesize > ($filename; But, is there a way to read the file directly into Flash? > > Thanks. > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how to read a plain text file
thanks Hans! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com