[Red5devs] need help: IServiceCapableConnection invoke CLient Method Flex3
tom
tomabroad at gmail.com
Mon Feb 9 10:07:44 PST 2009
Hi, im a little desperated:
Server:
IServiceCapableConnection service = (IServiceCapableConnection)current;
service.invoke("userBell", new Object[]{"One", 1});
CLient: (FLEX3)
m_red5connection.addEventListener("userBell", message);
Client function:
public function message ( message:Object ):void{
trace("message");
for ( var a:* in message )
trace(message[a]);
}
again, same result:
ReferenceError: Error #1069: Property userBell not found on
vs.Connection and there is no default value.
---------- Forwarded message ----------
From: tom <tomabroad at gmail.com>
Date: Mon, Feb 9, 2009 at 10:33 AM
Subject: IServiceCapableConnection invoke CLient Method Flex3
To: osflash at osflash.org
hi, im following basically this turotial:
http://www.red5tutorials.net/index.php/Tutorials:Streaming_and_database_connection_with_red5_media_server,
here the important part:
IServiceCapableConnection iconn = (IServiceCapableConnection)conn;
iconn.invoke( "message" , new Object[] {streamList} );
my problem is, i cant invoke the client mehtod:
public function message ( message:Object ):void
>> this is what flex is telling me:
ReferenceError: Error #1069: Property message not found on
vs.Connection and there is no default value.
what do i have to do here?
thx tom
More information about the Red5devs
mailing list