[AS3] Dynamically loading files from a webserver
#1 Members - Reputation: 103
Posted 31 March 2012 - 02:50 PM
Thanks in advance!
#3 Members - Reputation: 103
Posted 01 April 2012 - 06:44 PM
Don't serve static data through your web server stack, serve it from a static store (preferably a cdn).
I looked up the acronym and I assume you're referring to this?
http://en.wikipedia.org/wiki/Content_delivery_network
Are there other alternatives to this? What would be another example of a "static store"?
I suppose one of my problems is that I don't really know how a "web server stack" works. Would firing a URLRequest from a flash player be the same as requesting a direct file download from the website?
#4 Members - Reputation: 361
Posted 02 April 2012 - 06:45 PM
A server stack is your back end technology for your web game. If it was a facebook style zynga affair, probably a standard http lamp stack would do?
Not sure about as3 - generally for getting static data do an http get to your content store, for updating data do an http post to your web server.
#6 Members - Reputation: 103
Posted 03 April 2012 - 12:12 AM
An alternative to a cdn? A crappy one would be renting a machine in the cloud (or in your bedroom), getting its address and serving stuff off there... A server stack is your back end technology for your web game. If it was a facebook style zynga affair, probably a standard http lamp stack would do? Not sure about as3 - generally for getting static data do an http get to your content store, for updating data do an http post to your web server.
Awesome!
Disregarding where the files originally came from, store them in the local cache with HTML5/ECMAScript 5, or at least encourage the broswer to do it with HTTP headers. That removes both loading times and strain on the web server.
Is that possible? Do you think it would be considered dishonest to store game-related files on a player's computer through the use of browser scripts?
#7 Members - Reputation: 2369
Posted 03 April 2012 - 08:14 AM
Do you think it would be considered dishonest to store game-related files on a player's computer through the use of browser scripts?
Every HTTP response that browser receives and is does not contain no-cache in header is already cached by browser.






