Skip to main content
kkm19
Participant
Sep 22, 2010 4:44 PM UTC
Question

onBWDone return value?????

I try for 10 hours, and find nothing in internet.

If I set return value of onBWDone, it wont get return value.

BW.fla

nc.client = new Clienta();

Clienta.as

public function onBWDone(... rest):String{
var bandwidthTotal:Number;
if (rest.length > 0)
{

if (rest.length > 0)
{
bandwidthTotal = rest[0];
textx = "Bandwith from server to client is: " + bandwidthTotal + " Kbps";
trace(textx);
return textx;
}
else
{
trace ("NOTHING");
return "NOTHING";
}




}

}

red text, that is problem and can not get value of bandwidthTotal.

how can I get this value of return

bandwidthTotal
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Sep 23, 2010 11:38 AM UTC

    Your onBWDone method is invoked by the server, so in this case your code is just returning a value to the server. If you need your client side application to be notified of the result, dispatch an event.

    Translate
    Participating Frequently
    Sep 23, 2010 5:10 AM UTC

    If i am not wrong, i do not think you can override these onBWDone and onBWCheck functions.

    Translate