Just a thought, but if it works when saved locally, could you maybe
save it as a cookie on the users computer?
That may be a nice shortcut, since its just a playlist.
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Apr 22, 2009, at 2:44 AM, Sidney de Koning wrote:
No i cant use XML since eventually it will be a PLS file (Winamp
Shoutcast), I wrote a library that parses a PLS file (Playlist file
from Winamp Shoutcast server) (http://code.google.com/p/
as3plsreader/) this all works fine from with AIR, IF I have the
file already saved to local disk.
So my final test is to directly load the PLS from the shoutcast
server.
That why i need to convert the event.target.data to a File... Cant
i do:
var f:File = new File(event.target.data) ?
Do you have any other suggestion on how to do this?
Greets Sid
On Apr 21, 2009, at 11:58 PM, Muzak wrote:
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
Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders