sonofkyuss
06-07-2006, 12:19 PM
Greetings,
I have to play an audio from Flash, that I can access through a ftp connection.
This is how I have thought about doing it:
- flash calls php script with loadvars
- php script connects to ftp, copies the file on the server where the php file executes (I'd achieve this with ftp_get function)
- pass the url back to flash (of course I don't have to, but it's great because this way flash will 'know' when the file download is complete, e.g. will pass the url as a flag that notifies completion..get two bunnies with one shot)
- flash plays file
Should be pretty straightforward. Haven't tested yet ;)
I was wondering if there would be another better solution
(if someone went through this before).
Cheers
I have to play an audio from Flash, that I can access through a ftp connection.
This is how I have thought about doing it:
- flash calls php script with loadvars
- php script connects to ftp, copies the file on the server where the php file executes (I'd achieve this with ftp_get function)
- pass the url back to flash (of course I don't have to, but it's great because this way flash will 'know' when the file download is complete, e.g. will pass the url as a flag that notifies completion..get two bunnies with one shot)
- flash plays file
Should be pretty straightforward. Haven't tested yet ;)
I was wondering if there would be another better solution
(if someone went through this before).
Cheers