In the swf8 runtime, the call to LzMouseKernel.showHandCursor does this
,showHandCursor: function (show) {
Button.prototype.useHandCursor = show;
}
which sets the global default for all buttons.
In DHTML, it uses CSS to do the same thing.
For SWF9, I can think of two ways to set this value globally for all sprites
like is being done in the
other runtimes:
[A] set a "mouseover" and "mouseout" listener
for clickable sprites, and when the mouse comes over, I'll check a global
value of LzMouseKernel.showhandcursor.
[B] visit all sprites and set the value on each clickable sprite, when
a call to LzMouseKernel.showHandCursor() is made.
I think [A] is a little better, although you get the overhead of those event
listeners for each clickable sprite.
That seems better than iterating over all LzSprites, which might have a
noticable lag when there are a lot of
views instantiated in the app.
thoughts?
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]