Coder Social home page Coder Social logo

flink-as3's Introduction

Flink - Asset Packager

IMPORTANT: Library and documentation are still under heavy development. Changes in the API are very likely!

This library allows to load assets in an optimised way. Therefore assets get grouped and compressed in packages. For this step an Ant script is available.

Use cases for this library:

  • Optimised asset loading due to reduced size and fewer requests
  • Very high compression possible (using deflate)
  • Obfuscates the data that you load (e.g. configurations)
  • Automated optimisation during build process on CI server
  • Caches assets for multiple requests
  • Integrated fallback without packages (for local testing)
  • Integrates with your existing asset loader lib*

*) Requires additional work, see Usage below

What does it do?

The main concept is to summarise assets in compressed packages. When loading a file the library checks in which package the asset is stored. After loading uncompressing and parsing the package, the asset data gets returned. It is best practise to use this approach only for release versions in order to not have to create packages whenever an asset changes. That's why the library internally determines wether to load packages or load the assets directly.

Dependencies

AS3-Signals

Usage

Introduction

  • Create packages only for releases
  • For local debugging/testing always load assets individually
  • Create packages automatically on CI server
  • Group assets based on their usage (group assets that are likely used at same time)
  • Compress only contents that are not compressed already (don't compress SWFs)
  • Mark files as cacheable if they will be used multiple times
  • Be careful, requesting files, not marked as cacheable multiple times requires loading the whole package again
  • Files not marked as cacheable will be removed after the first request

Creating the packages

Using flink within Flash

Change log

Roadmap

flink-as3's People

Stargazers

Mattes Groeger avatar

Watchers

Mattes Groeger avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.