Official code page:
NResponder is a new way to work with events in ActionScript 3.0 globally. You can cross events between different classes or even in different SWF files. With NResponder you add so much more flexibility to your application because you can changes the parameters “on the fly” in Run-Time. NResponder is inspired on Objective-C approach and is very oriented to performance and memory. You don’t need to create any instance if you don’t want.
For example, you can do:
// Instead this myObject.addEventListener('anEventType', initialize, false, 0, true); // Use this NResponder.add('anEventType', initialize);
Bellow some characteristics of NResponder:
- Work in static or instantiated mode;
- Can specify the number of arguments to dispatch;
- Can change these arguments “on the fly” (in Run-Time);
- Can remove all NResponders;
- Can specify the number of replies;
- Can ordinate the replies;
- Can associate each listener with one target;
- Can have a delay to the next dispatch;
- Can pause or resume the replies;
- Can change all this attributes “on the fly” (in Run-Time);
- Can join to native Event API of Adobe® Flash® and continue to use all this features;
- Can instantiate and control each NResponder without change the others.
LEARN TO USE IT
The NResponder engine is full documented and you can check all the docs here:
Below you can watch videos tutorials with the features and real world examples of the usage of NResponder.
Youtube 5 chapters:
You can make the download of sources here:
Or visit the official code page of the NResponder:
Here is the blog page:
Remember to give me a feedback if you use it.
See you in the next post.