I had checked in a change which declared types for the args to LzDelegate
public function LzDelegate (context:LzMiniNode, methodName, eventSender =
null, eventName = null) {
but that didn't declare the types for the option third and fourth args..
On Tue, May 6, 2008 at 8:41 AM, P T Withington <[EMAIL PROTECTED]> wrote:
> 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");
> >
> >
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]