package com.webgame.as3.events
{
    import flash.events.*;

    public class SocketDataEvent extends Event
    {
        public var sockData:Object;
        public var errtext:String;
        public static const SOCKET_CONNECT_OK_EVENT:String = "socket_connect_ok_event";
        public static const SOCKET_DATA_RECV_EVENT:String = "socket_data_recv_event";
        public static const SOCKET_CONNECT_FAIL_EVENT:String = "socket_connect_fail_event";
        public static const SOCKET_SEND_FAIL_EVENT:String = "socket_send_fail_event";
        public static const SOCKET_CONNECT_CLOSE_EVENT:String = "socket_connect_close_event";

        public function SocketDataEvent(param1:String, param2:Boolean = true, param3:Boolean = false)
        {
            super(param1, param2, param3);
            return;
        }// end function

        override public function clone() : Event
        {
            var _loc_1:* = new SocketDataEvent(this.type, this.bubbles, this.cancelable);
            _loc_1.sockData = this.sockData;
            _loc_1.errtext = this.errtext;
            return _loc_1;
        }// end function

    }
}
