This content has been marked as final. Show 12 replies
You could put your mp3 files in a non web-accesible folder, your swf will be able to play them cause they are in the same computer, yet noone from the outside world can download them.
Thank you for your interest and for replying to my message. same to "The Feldkircher".
The problem is that I want to make the files accesible from other domains as it's something like youtube with external players so I cannot forbidden the access to a folder using .htaccess or something like that as it would cause the external players to stop working.
gl, what's a non web accessible folder from which a swf can access data?
Hahaha, aupa a ti tambien.
How about this: i believe you read an XML file to find the mp3 locations, how about you hide this XML file in a web non-accesible folder, that could do the trick!
Kglad: see how you usually put the files to be shown in your domains inside a folder called either public_html or mainwewebsite_html or wwwroot. If you put a file on a folder outside the public one, the file cannot be accesed by browser but it can be accesed from within the files running in the server.
*If you have a connection script to a database this is how you secure it from the world.
thanks gl. i'll give that a try.
mmmmm that could make the difference I will try it!
Eskerrik asko! / Gracias!
gl, i can't get that to work even with a cross-domain policy file.
i believe it's because the swf is not a file running on the server. it runs locally.
you could have the swf call a server-side file that would access the non-pubic directory (and present that to the swf), but that server-side file would be accessible by the public.
The only way to absolutely protect the files is to not put them on the web.
Now, I know that is not feasible in your situation, so, I would suggest
using Flash Media Sever to stream the files.
http://www.adobe.com/products/flashmediaserver/ FMS has a free dev license
that will allow for 10 connections.
If you are accessing the files via http they will be downloaded to the users
computer as they are being loaded and played, this is called progressive.
With a true stream, the files are not downloaded to the user's computer.
I blogged a little about this here:
Dan (Mode) Smith
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com <--check this
***Stop Piracy http://www.adobe.com/aboutadobe/antipiracy/***
"Shakarhaba87" <firstname.lastname@example.org> wrote in message
> As most of you know ActionScript is an exposed code as almost anyone how
> has a
> basic knowledge can view and copy the code that it's within your .swf
> The case is that I programmed an mp3 player to play the large amout of mp3
> files that I have stored on my server.
> To load and play the mp3 files I load an XML file which contains the path
> the audio file. Doing it in this way I expose all my mp3 files and anyone
> download them.
> Is there any way to protect those files? I don't know, loading them using
> other technology than XML, any Ideas which could help me will be really
> Thank you all in advice!
> Have a nice day, Arkaitz.
Kglad, you are right. Flash will need to acces another file that would be accesible by all. I didn't realize that before (actually that file is my WebService).
I use the securing important scripts in a non accesible folder for the php structure of the application itself but I had to create a WebService script for Flash to be able to access some of the appliaction methods.
Since Flash doesn't run on the server it cannot access those folders, this approach won't work this time but the streaming via seems like a good solution.
that's too bad. i have an interest different than the op. i have a flash encryption method that uses keys store in a file. that file needs to be accessible to the swf file but not publically available. so, i was hopeful that i could make this work.