jinx.as

0.1.3 • Public • Published

Imgur

Jinx is an AS3 API, that make AS3 simpler and easy-to-use. Inspired on jQuery. Jinx is NPM Friendly , for publish and load Jinx packages

Example :

// as3 vanilla
myButton.addEventListener(MouseEvent.CLICK, myClickReaction);
 
function myClickReaction (e:MouseEvent):void{
    trace("Clicked!");
}
 
// jinx
myButton.$click(function(){
    trace("Clicked!");
});

Chaning Functions Example:

// as3 vanilla
myMc.addEventListener(Event.ENTER_FRAME, function(e:Event){
    e.target.x += 0.5;
});
 
myMc.addEventListener(MouseEvent.MOUSE_OVER, function(e:Event){
    trace("Hover!");
});
 
myMc.gotoAndStop(3);
myMc.visible = true;
 
// jinx
myMc.$enterFrame(function(){
    this.x += 0.5;
}).$hover(function(){
    trace("Hover!");
}).$gotoAndStop(3).$show();
 

Project Road :

  • Create Repo
  • Create test environment in GulpJS using gulp-flash
  • Add to NPM
  • Make one Jinx Package (jinx-mempanel)
  • Load one Jinx Package via NPM
  • Create a jinx packages loader
  • Create Documentation
  • Make a gh-page with Examples
  • Dependencies of Dependencies
  • Create API for load AS Plugins and SWC from NPM

Any ideias? Issues? Have some improvement? Please help us, and make part of this API. 👍


The MIT License

Package Sidebar

Install

npm i jinx.as

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • webcaetano