How to Play SWF file from Amazon S3
Copy link to clipboard
Copied
I Have an android game with 10 levels the menu screen will have icons to load levels each levels is a seperate files like level1.swf to level10.swf these files were loading in the game when it is hosted in godaddy
but when i moved the files to aws s3 with public setting the file is downloading in the browser but the same file is not loading in the game
any suggestions?
https://s3.amazonaws.com/gamefolder/level1.swf
- working in browser
- working in html page in website
- Not working in game
Copy link to clipboard
Copied
Perhaps not setting the appropriate content-type, that caught me out with different types of file in S3. It may also be that there are extra security limitations, as part of the plan to block Flash completely soon, which are different in each browser.
Copy link to clipboard
Copied
I assume, by the way, that this just shows the form of your URL. The actual URL you posted is of a nonexistent bucket.
Copy link to clipboard
Copied
Flash Player doesn't care what the underlying storage of a SWF is. It's not an S3 problem per-se, but a problem of how you've configured your environment.
What Flash Player *does* care about is whether or not it's served over the correct protocol (HTTP/HTTPS), that it has the right mime-type set (application/x-shockwave-flash), and that if you're accessing resources from within the SWF, that any cross-domain requests are made to destinations that provide a crossdomain.xml file that grants sufficient permissions to make those requests.
