10Mar/10
Robotlegs Utility LazyMediator
中文:Robotlegs 的 LazyMediator 扩展
Robotlegs utility LazyMediator is for better performance in games.
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);
Why it
- LazyMediatorMap don’t listen events of display list and check every added/removed view.
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.
10Mar/10
Simple layout library: xrope
Started a new simple layout library xrope on GitHub.
I'll add more features and more libraries to make them a library group: xman (Has xrope and xbones now).
21Feb/10
FlexUnit 4 Utility of as3-signals
Wrote a Utility for FlexUnit 4 of as3-signals.
Example:
Async.proceedOnEvent(this, new SignalAsync(instance.someSignal), SignalAsyncEvent.CALLED); instance.doSomeThingShouldDispatchSomeSignal(); |


