jinx.as
v0.1.3
Published
Jinx is an AS3 API, that make AS3 simpler and easy-to-use. Inspired on jQuery.
Downloads
9
Maintainers
Readme
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 :
- [x] Create Repo
- [x] Create test environment in GulpJS using gulp-flash
- [x] Add to NPM
- [x] Make one Jinx Package (jinx-mempanel)
- [x] Load one Jinx Package via NPM
- [x] 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