Here's how video.lzx does it:
if (this.trackingDelegate == null) {
this.trackingDelegate =
new LzDelegate(this, "handleTracking");
}
LzIdle.onidle.addDelegate(
this.trackingDelegate);
Don't forget the #pragma passThrough.
jim
On Jun 27, 2007, at 9:23 AM, Benjamin Shine wrote:
In 3.3 and 3.4, how do I add an oninit handler to LzText? I want to
make the special font setup foo available to users of 3.3 and 3.4
without needing to re-release or re-compile the LFC. Something like...
<script>
LzText.addDelegate( "oninit", function()
{ this.__LZtextclip.antiAliasType = "advanced" } );
</script>
...but I'm sure I don't have quite the right syntax. Please advise.
-ben