Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azrafe7/hx-embed-assets

Embedding assets in Haxe 3 + OpenFL 1.1.1 via metatags.
https://github.com/azrafe7/hx-embed-assets

Last synced: 26 days ago
JSON representation

Embedding assets in Haxe 3 + OpenFL 1.1.1 via metatags.

Awesome Lists containing this project

README

        

hx-embed-assets
===============

Embedding assets in Haxe 3 + OpenFL 1.1.1 via metatags.

This little example shows how to embed and use assets via metadata tags
(see [http://haxe.org/manual/tips_and_tricks#flash-specific-metadata](http://haxe.org/manual/tips_and_tricks#flash-specific-metadata)).

Showcases:

- Font embedding (**@:font**)
- BitmapData embedding (**@:bitmap**)
- Sound embedding (**@:sound**)
- File embedding (**@:file**)
- XML embedding (**@:file** and **Xml** manipulation)

The great news is that now those metatags seem to be supported on _almost_ all platforms...
and that the resources will actually be included in the executable, just like flash does
(**they won't be copied over to the output folder!**).

Tested and working on windows targeting `flash`, `neko`, `cpp` and `android` (no luck with `html` for now).