Code Monkey home page Code Monkey logo

ofxflash's Introduction

OFX_FLASH

ofxFlash is a addon for openFrameworks which enables the loading of Flash XFL files into openFrameworks.

Essentially it is a emulated version of the Flash player which is able to build Flash files and play it's content.
It is designed to work only with OpenFrameworks but I've tried to separate the classes and minimise dependencies to make it easier for future porting to other frameworks.


WHAT IT CURRENTLY DOESâ

1) Loads flash XFL files and builds a OpenFrameworks version.
2) It emulates the Flash player run-time using the same display structure ( stage => sprite => display object container => interactive object => etc. )
3) Supports 2D matrix transformations for translating, scaling, rotating and skewing display objects and applying those transformations to their children.
4) Supports display lists, so display objects can be nested in other display objects.
5) Uses AS3 syntax where possible to make it easier for Flash devs to understand.
6) Supports rectangle and oval primitives.
7) Manages media assets ( Bitmap / Video / Sound ) through the ofxFlashLibrary class.
8) Mouse interaction is working! Mouse events filter down the parent-child chain taking into account mouseEnabled and mouseChildren properties.


STILL TO COMEâ

1) Custom shape support. Working out XFL encoding of vector shape data and translating that into something OF friendly like a number of points.
2) Event dispatching and management using AS3 syntax.
3) Text support. Although this is a huge field, so we'll see how far it can be pushed.
4) Support for timeline tweening. At the moment a work around this is to create a tween, copy it onto another layer and break it into key frames.


DEPENDENCIESâ

1) OpenFrameworks 007
2) ofxXmlSettings

ofxflash's People

Contributors

julapy avatar

Stargazers

 avatar

Watchers

 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.