Preloading example with Haxe and SamHaxe
Let's see how can we create a preloaded swf for our flash game, widget or website using pure Haxe. For embedding the assets, we will use SamHaxe, our new flash asset tool.
Our goal is to have heavy assets in our swf, but would like to show a progress bar until all these assets have loaded.
Read the full post
09.09.20. 10:12 - | - § ¶
Tags: flash haxe library one_file preloader samhaxe swfmill xml
SamHaXe: an swfmill alternative flash asset lib assembler
Version 1.0 of our new tool called SamHaXe is now available for testing! It is a command-line asset library assembler for flash (currently flash9 and 10 are targeted - later flash versions may be supported in newer versions of SamHaXe, if demanded :). You enumerate the resources you want to import (sounds, images, fonts, text files, binary files, other swf files) in a resource description file, and SamHaXe assembles a nice swf from them, which you can then use in your flash projects.
SamHaXe was written in HaXe targeting nekovm, so it can be run on both Linux, Windows and Mac platforms. You can even write your own import plugins (see the Module API section in the documentation)!
You can download the source or prebuilt windows binaries from http://mindless-labs.com/trac/samhaxe . Please read the text carefully, as you still need to install FreeType and ImageMagick for the prebuilt binary and update the configuration file. Once installed, you can find plenty of documentation and examples at http://mindless-labs.com/samhaxe/doc/1.0/ .
09.09.10. 12:43 - | - § ¶
Last Comments
Oakley (SamHaXe: an swfmi…): Oakley and Ray Ban Sunglasses are on sale, We offer Ray Ban S…Oakley (Preloading exampl…): Oakley Sunglasses from Oakley factory direct,Discount Oakley …
Oakley (Haxe serializer s…): With the most competitive prices,you can carry many style of …
Oakley (JsUnHaXe - Javasc…): Purchase Oakley Sunglasses from online Oakley store,discount …
Oakley (Pixel art and the…): Ray Ban Wayfarer,and other Ray Ban Sunglasses are in Final sa…