If you are not familiar with callback or bind, it is the same concept as Delegate.create in as2/as3 and explanations can easily be googled.
import mx.utils.Delegate;
function myClickHandler(evt)
{
trace(evt.target);
trace(this);
}
myBtn.addEventListener("click", Delegate.create(this,myClickHandler));
Yeah usually you use the observer pattern in Haxe, that is callbacks or signals, when you want to use a cross-platform approach.
Do you want to use C++ specific features like interrupts?
PS: msignal is a classic cross-target library, and it's definitely usable for C++:
https://github.com/massiveinteractive/msignal
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.