And when you trace out you do get the contents of the file?
Yup, I saw file content in debug window.
If it does work, my question becomes something different;
How do i convert the loaded in data (one big string) to a File object ?
Use xml instead of text?
- Can i add data to a File Object?
- Can i create a new temporary File Object and and string data to it?
Nope and nope.
The data property of a File object is read only. Check the docs.
You typically use a File object in combination with a FileStream instance to
read/write to disk.
http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html
http://livedocs.adobe.com/flex/3/langref/flash/filesystem/FileStream.html
I save it in memory and pass it through to the rest.
Depends on what the "rest" is, but you can pass a File object around, just like
any other object.
regards,
Muzak
----- Original Message -----
From: "Sidney de Koning" <sid...@funky-monkey.nl>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, April 21, 2009 4:49 PM
Subject: Re: [Flashcoders] Loading string data in a file from a server
Hi Muzak,
And when you trace out you do get the contents of the file?
Sid
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders