Ah. My bad. I guess the interface should just go away. Or declare the
slots in the interface as being of type function? If that's allowed.
Maybe you are not allowed to declare vars at all in an interface. If
that's the case, just comment out the interface.
On Apr 14, 2008, at 16:05, Philip Romanik <[EMAIL PROTECTED]>
wrote:
swf9 produces an error,
[java] [(unknown): 8] line unknown: Error: A conflict exists
with inherited definition LzCursorInterface.showHandCursor in
namespace public.
because showHandCursor is defined as a method in the base class.
class LzCursorInterface {
function showHandCursor(show:boolean) {};
...
}
class LzCursorService extends LzCursorInterface {
var showHandCursor = LzMouseKernel.showHandCursor;
...
}
This should work in swf9, as long as mousekernel is an instance. Or
am I missing something?
On Apr 14, 2008, at 14:40, Philip Romanik < [EMAIL PROTECTED]
>
wrote:
> I'm using LzCursor as a model for LzBrowser, and I don't see how
this
> code will ever work in swf9? LzCursorInterface defines the
interface
> and LzCursorService defines the singleton and redirects the call to
> the kernel. Lines like this,
>
> var showHandCursor = LzMouseKernel.showHandCursor;
>
> avoid a step of indirection, but it will not work in swf9. Is this
> solution only designed for swf/dhtml and a more traditional
solution
> intended for swf9?
>
> Thanks!
>
> Phil
>