The sequel to "Outpost:Haven"4.06 / 5.00 35,404 Views
Hunt The Candy!!!3.83 / 5.00 11,521 Views
A thrilling rush through cyberspace!3.79 / 5.00 36,159 Views
I want to upload a game I made, but the .swf file is 33 MB--and NG only allows up to 20 MB. Is there any way I can make my file smaller? :( [It was created in Multimedia Fusion 2.]
Also, when I did try to upload it, it said "this does not appear to be a valid .swf file." Does that usually happen when a file is too big? Or is there something wrong with the file?
I'd really appreciate some help!
You could load the main swf file into the one you upload to NG, and host the core file externally somewhere that allows direct linking (like a webhost).
To reduce filesize... If you haven't done so already you could compress any included audio. If you have a lot of imported graphics such as photos or background art you could also compress those before importing them. Another tip would be to break apart text so the file doesn't need to embed fonts, though that probably won't cut down the size much for such a big file.
Hope that helps.
At 1/31/13 04:43 PM, Cyberdevil wrote: You could load the main swf file into the one you upload to NG, and host the core file externally somewhere that allows direct linking (like a webhost).
What do you mean? (I'm not that good with computers...)
At 1/31/13 04:46 PM, PinkamenaDiane wrote: What do you mean? (I'm not that good with computers...)
I'm no expert myself, but if you Google 'load external swf into swf' there are plenty of tutorials available. Here's one. They all use a loader class to embed an external file within the first frame. You could try entering this code in 'actions' for the first keyframe of a new swf file:
var loader: Loader = new Loader();
loader.load( new URLRequest("mySwf.swf") );
Then upload the 33mb file somewhere and change mySwf.swf to the URL where the big file is located, for example http://site.com/mySwf.swf. You'll need someplace to host the file though, there are plenty of free hosts but not all allow direct linking or have a big enough file limit. You could use a service like Google Drive and use a service like this to generate a direct link. I don't know how the program you use works though, it might be different from regular Flash.
If this sounds too complex then compressing your content would probably be a better option. Or, if it's possible, just split the file. If it's a long animation, make it a two-part animation. Hope this helps! :)