Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Basic raix.reactive example
var doubleClicks : IObservable = Observable.fromEvent(stage, MouseEvent.CLICK)
.filter(function(ti:TimeInterval):Boolean { return ti.interval < 300; })
var subscription : ICancelable = doubleClicks.subscribe(function(me:MouseEvent):void
trace("Double click");
// Unsubscribe (removing all event listeners)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment