# jinx-events

> Jinx module for chaining prototype events

Latest version **1.0.0** (published 2015-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install jinx-events
pnpm add jinx-events
yarn add jinx-events
bun add jinx-events
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-05-05 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andre Caetano |
| Maintainers | webcaetano |
| Keywords | framework, jinx, api, swf, swc, flash, actionscript, as3 |

## Links

- npm: https://www.npmjs.com/package/jinx-events
- Repository: https://github.com/webcaetano
- npm.io page: https://npm.io/package/jinx-events

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-05-05

## README

# [![Imgur](http://i.imgur.com/FHjshUv.png)](https://github.com/webcaetano/jinx)

[Jinx](https://github.com/webcaetano/jinx) module for chaining prototype events

Example
```javascript

var myMc = new foo();

myMc.x = 250;
myMc.y = 100;
addChild(myMc);

myMc.$bind('enterFrame',function(){
	this.rotation+=0.5; // it will spin
}).$bind('click',function(){
	this.y+=5; // it will go down a when clicked
}).$hover(function(){
	this.alpha=0.5; // it will be 50% alpha when mouse hover
},function(){
	this.alpha=1; // it will be 0% alpha when mouse out
})

```

## Events suported.

- enterFrame
- removed
- load
- mouseMove
- mouseUp
- mouseDown
- mouseOver
- mouseOut
- releaseOutside
- click
- mouseWhell
- rollOut
- rollOver
- rightClick

## Alias

- $click = $bind('click');
- $hover([function mouseOver],[function mouseOut]) = $bind('mouseOver')
- $mouseOver([function mouseOver],[function mouseOut]) = $bind('mouseOver')
- $mouseMove = $bind('mouseMove');
- $mouseOut = $bind('mouseOut');
- $mouseUp = $bind('mouseUp');
- $enterFrame = $bind('enterFrame');
- $mouseDown([function mouseDown],[function release || releaseOutside]) = $bind('mouseDown')

---------------------------------

The MIT [License](https://raw.githubusercontent.com/webcaetano/jinx/master/LICENSE.md)

---
_Source: https://npm.io/package/jinx-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
