Yet another preloader for Flash
Monkey Targets Forums/Flash/Yet another preloader for Flash
| ||
As of now, Monkey doesn't come bundled with a Flash preloader, so I've developed my own version. Features: - Doesn't require any changes in Monkey's code - Requires FlashDevelop: http://www.flashdevelop.org/ However, if you are a serious Flash developer, you will need FlashDevelop sooner or later. Therefore, I think it's not a problem. Compatible with any version of Monkey! License: Public Domain. Demo Download monkey-flashdevelop-preloader-1.0.zip How to install Unzip the files into yourgame.build/flash. Open the MonkeyGameWithPreloader.as3proj project and build it (F8 to build, F5 to build and run). Done! In the Preloader.as file you can customize preloader's look and SWF file's width/height. Or implement CPMStar ads and so on. Before each final release, remember to compile your project in "Release" mode. |
| ||
Wow, that is impressively simple to implement! And it solved the problem I was having with therevills' preloader. I was just about to abandon Monkey and go back to Flixel/FlashDevelop. Thanks a lot for this, programmer. |
| ||
like +1 |
| ||
Hi Thanks for your work. For me, the preloader don't works. I'm surely missing something. This is a game i'm working on : http://www.retro-bruno.com/flash/dark/dark.html Can you help me ? |
| ||
@Vignoli, it works fine. This is a problem in your or hoster's Apache web-server. It compresses SWF files but it shouldn't: http://web-sniffer.net/ --> http://www.retro-bruno.com/flash/dark/dark.swf HTTP Request Header Connect to 193.37.145.126 on port 80 ... ok GET /flash/dark/dark.swf HTTP/1.1 Host: www.retro-bruno.com Connection: close User-Agent: Web-sniffer/1.0.46 (+http://web-sniffer.net/) Accept-Encoding: gzip Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7 Cache-Control: no-cache Accept-Language: de,en;q=0.7,en-us;q=0.3 Referer: http://web-sniffer.net/ HTTP Response Header Status: HTTP/1.1 200 OK Date: Sat, 21 Dec 2013 11:39:46 GMT Server: Apache Last-Modified: Sat, 21 Dec 2013 10:28:56 GMT ETag: "21a81f8-3115c3-4ee08dca82a00" Accept-Ranges: bytes Vary: Accept-Encoding Content-Encoding: gzip Connection: close Transfer-Encoding: chunked Content-Type: application/x-shockwave-flash Look at http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other |
| ||
Thanks, i hope my hosters will help me because i don't understand how to do it ( they are LWS ) |