Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash embedded assets #35

Open
aduros opened this issue Aug 6, 2012 · 0 comments
Open

Flash embedded assets #35

aduros opened this issue Aug 6, 2012 · 0 comments

Comments

@aduros
Copy link
Owner

aduros commented Aug 6, 2012

Flash assets are loaded over HTTP, since this is better for large games that are regularly updated (an updated asset only requires that one asset be re-downloaded, instead of the entire game) and for parity with HTML.

It would be cool if there was an option to package all Flash assets into a single SWF that could be distributed to Flash game portals more easily.

Steps to make this happen:

  1. Dust off the old Flash AssetPackager tool: https://github.com/aduros/flambe/blob/9ee975596a8d00aeb0b75d36b4c957c326dce41b/tools/packager/src/AssetPackager.hx
  2. Modify flambe.py to optionally use it, and pass the asset swf as a -swf-lib.
  3. Create FlashEmbeddedAssetPackLoader that loads symbols from the lib instead of over HTTP.

For now, it's possible to build with asset_base="http://your-cdn.com/assets" to host the assets yourself, if you're ok with footing the bandwidth.

purplepwny added a commit to purplepwny/flambe that referenced this issue Jun 24, 2014
…rating hxswfml into the build process.

Since embedded assets load significantly faster than assets on the filesystem, this fix depends on @d29c102. To start embedding assets into flash projects, set embed_assets: true in flambe.yaml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant