Jinx is an AS3 Pre-compiler, that make AS3 simpler and easy-to-use, but more powerfull with some new features.
Jinx is NPM friendly , for publish and load Jinxs packages (.jinx, .as and .swc). Compiled currently on GulpJS it making easily to create news plugins and features.
- ✔
CommonJS-style
require() & modules.exports for load modules from NPM like in nodejs, browserify, webpack. - ✔ Open AS3 to NPM.
- ✔ IDE Free. Work on your favorite text editor.
- ✔ browser development, with livercompiler and liverload.
- ✔ Ready to Code. No need to start with [package -> public class -> public funciton].
- ✔ load or export swc from NPM.
- ✔ All of as3 but simpler with more.
- ✔ Open source.
Example :
//as3 vanilla
package {
import flash.display.Sprite;
public class Main extends Sprite {
public function Main() {
trace('hello world');
}
}
} // 8 lines
//jinx
trace('hello world'); // one line
Load jinx-packages from npm
// jinx
// npm install jinx-mempanel
var memPanel = require("jinx-mempanel");
memPanel(); // load a jinx module + swc that show FPS, Memory usage and Number of particles in a panel.
//or just
require("jinx-mempanel")();
Cloning this repo. This repo is just a jinx boilerplate.
git clone https://github.com/webcaetano/jinx.git
cd jinx
npm install && bower install
Start the development mode.
gulp serve
Create the .swf
gulp
# or
gulp build
- jinx-mempanel Panel of Performance (Memory, FPS, Particles counter) @webcaetano
- jinx-events MovieClipe Events by Protoype & chaining @webcaetano
- jinx-error-catcher handle error and submit to browser console @webcaetano
- jinx-console enable console browser object on AS3 @webcaetano