I found out some further information.  I modified
components/extensions/av/rtmpconnection.lzx to make the netconnection always
through the line:

this._nc.call(func, obj);

instead of:

this._nc.call.apply(arguments);

This condition takes place at line 233 of rtmpconnect.lzx.  It seems like
the compiler warnings say that the "call" method cannot be overriden in a
base class.  So by reverting back to "this._nc.call(func, obj);" does the
trick, but obviously this refactor was done for a reason.  Plus I still get
the compiler warnings.

Hope this helps uncover some issues,
Tony

On Fri, May 2, 2008 at 8:26 AM, Anthony Bargnesi <[EMAIL PROTECTED]>
wrote:

> Hello,
>
> I recently ran a lzx test app in 4.0.12 that makes a call to Red5.  What
> worked fine in an previous laszlo versions
> has since stopped working.  This time, however, I am seeing the following
> compiler warnings:
>
> *extensions/av/rtmpconnection.lzx:14:49:* Method rtmpconnection.call is
> overriding a superclass method of the same name which has been declared
> non-overridable
> *extensions/av/rtmpconnection.lzx:250:48:* Method netremotecall.call is
> overriding a superclass method of the same name which has been declared
> non-overridable
>
> Here is the example LZX:
>
> <canvas debug="true">
>     <button name="callButton" onclick="onCardEventCall();">
>         Call sendEvent
>         <method name="onCardEventCall">
>             canvas.rtmp.onCardEvent.event = "button was clicked!";
>             canvas.rtmp.onCardEvent.call();
>         </method>
>     </button>
>     <rtmpconnection name="rtmp" debug="true" autoconnect="true"
> src="rtmpt://localhost:8888/srvr/myhome">
>         <handler name="onconnect">
>             Debug.write("connected");
>         </handler>
>         <handler name="onerror">
>             Debug.write("error ",this.status);
>         </handler>
>
>        <netremotecall name="onCardEvent" funcname="onCardEvent">
>             <attribute name="event" value="" type="string" />
>             <netparam name="vars1"><method name="getValue">return
> parent.event;</method></netparam>
>         </netremotecall>
>
>        <netremotecall name="newEvent" funcname="newEvent">
>             <method name="onResult" args="value">
>                 Debug.write('event received: ' + value);
>             </method>
>         </netremotecall>
>     </rtmpconnection>
> </canvas>
>
> I see the rtmpconnection being made on the Red5 server, but when I try to
> send an event by clicking the "callButton"
> it never comes through in Red5.  I'm thinking this has something to do
> with the compiler warnings.
>
> Any thoughts?
>
> Tony
>

Reply via email to