|
沙发

楼主 |
发表于 2018-9-19 08:07:57
|
只看该作者
广东省茂名市
public class SocketEvent extends Event
{
public function SocketEvent(param1:String, ... rest)
{
super(param1);
if(param1 == DATA)
{
this._bytes = rest[0] as ByteArray;
}
else if(param1 == CONNECT)
{
if(rest.length > 0)
{
this._success = rest[0] as Boolean;
}
}
}
public static const DATA:String = "dataReceived";
public static const CONNECT:String = "connect";
public static const CLOSE:String = "close";
public static const FAILED:String = "failed";
这个是这个类的声明 |
|