mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
50 lines
1.4 KiB
ActionScript
50 lines
1.4 KiB
ActionScript
package org.osmf.events
|
|
{
|
|
import flash.events.Event;
|
|
import flash.net.NetConnection;
|
|
import org.osmf.media.URLResource;
|
|
|
|
public class NetConnectionFactoryEvent extends Event
|
|
{
|
|
|
|
public static const CREATION_COMPLETE:String = "creationComplete";
|
|
|
|
public static const CREATION_ERROR:String = "creationError";
|
|
|
|
private var _netConnection:NetConnection;
|
|
|
|
private var _resource:URLResource;
|
|
|
|
private var _mediaError:MediaError;
|
|
|
|
public function NetConnectionFactoryEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:NetConnection = null, param5:URLResource = null, param6:MediaError = null)
|
|
{
|
|
super(param1,param2,param3);
|
|
_netConnection = param4;
|
|
_resource = param5;
|
|
_mediaError = param6;
|
|
}
|
|
|
|
public function get netConnection() : NetConnection
|
|
{
|
|
return _netConnection;
|
|
}
|
|
|
|
public function get resource() : URLResource
|
|
{
|
|
return _resource;
|
|
}
|
|
|
|
public function get mediaError() : MediaError
|
|
{
|
|
return _mediaError;
|
|
}
|
|
|
|
override public function clone() : Event
|
|
{
|
|
return new NetConnectionFactoryEvent(type,bubbles,cancelable,_netConnection,_resource,_mediaError);
|
|
}
|
|
}
|
|
}
|
|
|