Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evan-liu/robotlegs-utilities-LazyMediator
Robotlegs utility LasyMediator for better performance in games.
https://github.com/evan-liu/robotlegs-utilities-LazyMediator
Last synced: 2 months ago
JSON representation
Robotlegs utility LasyMediator for better performance in games.
- Host: GitHub
- URL: https://github.com/evan-liu/robotlegs-utilities-LazyMediator
- Owner: evan-liu
- Created: 2010-02-25T15:13:55.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-06T03:14:03.000Z (almost 14 years ago)
- Last Synced: 2024-08-03T05:03:00.707Z (6 months ago)
- Language: ActionScript
- Homepage:
- Size: 423 KB
- Stars: 23
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
- awesome-actionscript-sorted - robotlegs-utilities-LazyMediator - Robotlegs utility LasyMediator for better performance in games. (Frameworks / RobotLegs Framework)
README
h2. Robotlegs utility LazyMediator for better performance in games.
h3. How to use
* Override the *_mediatorMap_* getter method in *_context_* to:
return _mediatorMap || (_mediatorMap = new LazyMediatorMap(contextView, injector));* In the constructor of view classes add:
new LazyMediatorActivator(this);h3. Why it
* *_LazyMediatorMap_* don't listen events of display list and check every added/removed view.
h3. How it works
* *_LazyMediatorActivator_* dispatchs *_LazyMediatorEvent_* when the view is added/removed from stage.
* *_LazyMediatorMap_* listen to the *_LazyMediatorEvent_* from *_contextView_* then check the view.Current version is compatible with Robotlegs v1.4.0+ because _active field (used in LazyMediatorMap) was removed there.