0.1.3 • Published 9 years ago
jinx.as v0.1.3
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. :+1:
The MIT License