[Laszlo-dev] Requiring LzMiniNode as event sender/receiver

P T Withington ptw at pobox.com
Tue May 6 05:41:14 PDT 2008


I tried declaring the event sender/receiver in LzDelegate and LzEvent  
to be LzMiniNode and get a raft of errors from swf9.  I'll fix these  
if no one else is working on this, but I thought Henry had already run  
in to some of these errors?

>      [java] [/tmp/lzswf9/lzgen11237/LzTrackClass.as: 8] line 135:  
> Error: Implicit coercion of a value of type Class to an unrelated  
> type LzMiniNode.
>      [java] [/tmp/lzswf9/lzgen11237/LzEvent.as: 9] line 420: Error:  
> Access of possibly undefined property _events through a reference  
> with static type LzMiniNode.
>      [java] [/tmp/lzswf9/lzgen11237/LzCanvas.as: 93] line 289:  
> Error: Implicit coercion of a value of type Class to an unrelated  
> type LzMiniNode.
>      [java] [/tmp/lzswf9/lzgen11237/LzCanvas.as: 94] line 290:  
> Error: Implicit coercion of a value of type Class to an unrelated  
> type LzMiniNode.
>      [java] [/tmp/lzswf9/lzgen11237/LzCanvas.as: 95] line 291:  
> Error: Implicit coercion of a value of type Class to an unrelated  
> type LzMiniNode.
>      [java] FAIL: compiler returned 5
>      [java] Done executing compiler
>      [java] Intermediate file /tmp/lzswf9/lzgen11237/app.swc: does  
> not exist
>      [java] Exception compiling scriptfile:  
> org.openlaszlo.sc.CompilerError: line 135: Error: Implicit coercion  
> of a value of type Class to an unrelated type LzMiniNode, in line:  
> this.__LZmouseupDel = new LzDelegate(this, "__LZmouseup",  
> LzGlobalMouse, "onmouseup")
>      [java] line 420: Error: Access of possibly undefined property  
> _events through a reference with static type LzMiniNode, in line:  
> eventSender._events = [this]
>      [java] line 289: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line: this.__LZmouseupDel  
> = new LzDelegate(this, "__LZmouseup", LzGlobalMouse, "onmouseup");
>      [java] line 290: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line:  
> this.__LZmousedownDel = new LzDelegate(this, "__LZmousedown",  
> LzGlobalMouse, "onmousedown");
>      [java] line 291: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line:  
> this.__LZmousemoveDel = new LzDelegate(this, "__LZmousemove",  
> LzGlobalMouse, "onmousemove");
>      [java] org.openlaszlo.sc.CompilerException:  
> org.openlaszlo.sc.CompilerError: line 135: Error: Implicit coercion  
> of a value of type Class to an unrelated type LzMiniNode, in line:  
> this.__LZmouseupDel = new LzDelegate(this, "__LZmouseup",  
> LzGlobalMouse, "onmouseup")
>      [java] line 420: Error: Access of possibly undefined property  
> _events through a reference with static type LzMiniNode, in line:  
> eventSender._events = [this]
>      [java] line 289: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line: this.__LZmouseupDel  
> = new LzDelegate(this, "__LZmouseup", LzGlobalMouse, "onmouseup");
>      [java] line 290: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line:  
> this.__LZmousedownDel = new LzDelegate(this, "__LZmousedown",  
> LzGlobalMouse, "onmousedown");
>      [java] line 291: Error: Implicit coercion of a value of type  
> Class to an unrelated type LzMiniNode, in line:  
> this.__LZmousemoveDel = new LzDelegate(this, "__LZmousemove",  
> LzGlobalMouse, "onmousemove");
>


More information about the Laszlo-dev mailing list