Comments (3)
This was probably fun to make. Personally, though, I would treat mySignal.dispatch() as just a function call that can be be wrapped in a closure and delayed using a mechanism outside the signal.
Here is a fun way to delay by one frame, using NativeSignal:
http://www.darklump.co.uk/blog/?p=341
from as3-signals.
Yeah it was. I saw that post before I created the AsyncSignal, and it's certainly useful, but I wanted something more integrated that would easily work with Robotlegs in anything (including commands) just changing the class declaration, no boilerplate code. If I need an Async dispatch, just change the "extends Signal" to "extends AsyncSignal" and that's it. I felt is followed the spirit of simplicity, compile-time checking and little boilerplate code. Also it doesn't depend on having the object be part of the display list.
BTW. Love your code, so easy to follow, yet efficient.
from as3-signals.
Closing.
from as3-signals.
Related Issues (20)
- Cannot add listener Functions with varargs HOT 3
- Listeners with rest-parameter should not cause ArgumentError HOT 3
- SignalBindingList executes listeners in reverse order HOT 2
- Ambiguity in priority dispatching HOT 10
- use of swfplayer10 event types HOT 8
- Sending params with NativeSignal fails. HOT 2
- ISignal in as3-signals-v0.8.swc without ISignal.dispatch() HOT 1
- Manual "bubbling" (redispatching) — arguments error HOT 3
- Events bus HOT 1
- Bug in SlotList#insertWithPriority HOT 3
- priority signal bug HOT 3
- Bubbling from non-displayobject classes HOT 1
- Starling and NativeSignal ( IEventDispatcher )
- Is a bug? Why use a single equal sign for while operation? HOT 7
- NativeMappedSignal mapTo Function with return Class HOT 2
- Vector.<ISignal> over Array? HOT 3
- TypeError: Error #1034: Can't change the org.osflash.signals::SlotList@9d633e1 to org.osflash.signals.SlotList
- cinemanow player
- TypeError: Error #1006: value is not a function HOT 2
- Official v0.9 release? or even v1.0? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as3-signals.