[Laszlo-dev] How will LzCursor ever work in swf9

Philip Romanik promanik at laszlosystems.com
Mon Apr 14 13:05:59 PDT 2008


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 
><<mailto:promanik at laszlosystems.com>promanik at laszlosystems.com>
>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
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080414/b18b5772/attachment.html


More information about the Laszlo-dev mailing list