Skip to main content
kkm19
Participant
September 22, 2010
Question

onBWDone return value?????

  • September 22, 2010
  • 2 replies
  • 1742 views

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 has been closed for replies.

    2 replies

    September 23, 2010

    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.

    Participating Frequently
    September 23, 2010

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