[AIR]Saving Files To SharedObject

I am doing a mp3 player like a Winamp :sc:

I can get names and urls of droped files.Then I use Sound class to play them. There is no problem.

But when user close my player and open again, the files must be on the list… I thought to use Shared Objects.

This my droped file code:
[AS]
var file_list:SharedObject = SharedObject.getLocal(“files”);
d = e.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
file_list.data.sounds = d.toString();[/AS]

You see it is array.No problem here.Then my first codes:
[AS]
var file_list:SharedObject = SharedObject.getLocal(“files”);
if (file_list.data.sounds!=null) {
d=file_list.data.sounds.split(“,”)
trace(d);
}[/AS]

In output:

[object File],[object File],[object File],[object File]

Yes you think there is no problem.But yes there is :frowning: I can’t get the files names or urls.The error like this:

TypeError: Error #1034: Type Coercion failed: cannot convert “[object File]” to flash.filesystem.File.
at deneme0_fla::MainTimeline/baslik_yarat()
at deneme0_fla::MainTimeline/deneme0_fla::frame1()
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at global/runtime::ADLEntry()
First of all can we save our files? If yes how? Thanks… :slight_smile: