Hİ Lucas
I just use like that. I have no idea why you are getting this unexpected
error but this may help you to compare with yours) :
//this is for as3
<switch>
<when property="$as3">
<passthrough>
import flash.net.*;
</passthrough>
</when>
</switch>
<attribute name="responder" /><!--responder for the server side-->
<!--listening connected attribute of the connection-->
<handler name="onconnected" reference="conn">
if (conn.connected) {
responder = new Responder(this.responderResult,
this.responderStatus);
}
</handler>
<method name="responderResult" args="returnvalue">
if ($debug)
Debug.write("register result method : " + returnvalue);
</method>
<method name="responderStatus" args="returnvalue">
Debug.write("onStatus:" + returnvalue.toString);
</method>
HTH
Regards
2010/5/20 Lucas Lain <[email protected]>
> Hello everyone,
>
> I'm trying to use rtmp._nc.call() as follows:
>
> rtmp._nc.call(
> "auth_bcast",
> new Responder(
> function() { vid.stream.broadcast() },
> funcition(fault: Object) {}
> ),
> key
> );
>
> .... but the class "Responder" is not available on canvas. I tried to use
> "passtrhrough" with "import flash.net.Responder;" but the compiler says:
>
> "Call to a possibly undefined Method Responder"
>
> What I am doing wrong?
>
> Best!
>
> --
> Lucas
> +54 911 6621 5845
>
>
--
Cem SONMEZ