PDA

View Full Version : Can Flash connect and download something?


sarumitai
05-24-2007, 04:52 AM
I've made a quiz game for some students that uses a text file. It's a projector now since most of the kids either don't have internet or it's limited.

What I would like to do, rather than give each kid a new variable text file every update, is have a button on the screen that allows them to download a new file from a preset location.

Basically the button would check if the internet is available and then connect to the site then download and install(overwrite) the file.

We are in a small country town and kids either don't have internet at all or they still connect via 56k modem for a limited time. Ideally a web based system is best, but they can't do that now.

Is this possible? If (answer == yes) then any leads on where I can get info?

icktoofay
05-24-2007, 06:18 AM
It can check for an internet connection and download something, but you can't specify where to. Use FileReference with instructions on where to download it. After it's done, you can actually see if they did it correctly, and if not, open the save dialog again... and, yeah. Of course this would be a little complex with everything I described in this post. But it can be done.

5566
05-24-2007, 06:22 AM
you can download a file using FileReference, but the user need to choose where to save it. I don't think it's easy enough for the kids. You can explore SharedObject which is a cookie. When pressing download, you read a text file located at your server and save the information as a cookie(SharedObject) to the user's computer.

sarumitai
05-24-2007, 07:37 AM
As long as it is possible in some way, I will explore it further.

Thanks.