Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,6 @@
package flash.net;
extern class DynamicPropertyOutput implements IDynamicPropertyOutput {
function new() : Void;
function writeDynamicProperty(name : String, value : Dynamic) : Void;
}

View File

@ -0,0 +1,14 @@
package flash.net;
extern final class FileFilter {
@:flash.property var description(get,set) : String;
@:flash.property var extension(get,set) : String;
@:flash.property var macType(get,set) : String;
function new(description : String, extension : String, ?macType : String) : Void;
private function get_description() : String;
private function get_extension() : String;
private function get_macType() : String;
private function set_description(value : String) : String;
private function set_extension(value : String) : String;
private function set_macType(value : String) : String;
}

View File

@ -0,0 +1,25 @@
package flash.net;
extern class FileReference extends flash.events.EventDispatcher {
@:flash.property var creationDate(get,never) : Date;
@:flash.property var creator(get,never) : String;
@:flash.property @:require(flash10) var data(get,never) : flash.utils.ByteArray;
@:flash.property var modificationDate(get,never) : Date;
@:flash.property var name(get,never) : String;
@:flash.property var size(get,never) : Float;
@:flash.property var type(get,never) : String;
function new() : Void;
function browse(?typeFilter : Array<FileFilter>) : Bool;
function cancel() : Void;
function download(request : URLRequest, ?defaultFileName : String) : Void;
private function get_creationDate() : Date;
private function get_creator() : String;
private function get_data() : flash.utils.ByteArray;
private function get_modificationDate() : Date;
private function get_name() : String;
private function get_size() : Float;
private function get_type() : String;
@:require(flash10) function load() : Void;
@:require(flash10) function save(data : Dynamic, ?defaultFileName : String) : Void;
function upload(request : URLRequest, ?uploadDataFieldName : String, testUpload : Bool = false) : Void;
}

View File

@ -0,0 +1,8 @@
package flash.net;
extern class FileReferenceList extends flash.events.EventDispatcher {
@:flash.property var fileList(get,never) : Array<FileReference>;
function new() : Void;
function browse(?typeFilter : Array<FileFilter>) : Bool;
private function get_fileList() : Array<FileReference>;
}

View File

@ -0,0 +1,44 @@
package flash.net;
@:require(flash10_1) extern class GroupSpecifier {
@:flash.property var ipMulticastMemberUpdatesEnabled(get,set) : Bool;
@:flash.property var minGroupspecVersion(get,set) : Int;
@:flash.property var multicastEnabled(get,set) : Bool;
@:flash.property var objectReplicationEnabled(get,set) : Bool;
@:flash.property var peerToPeerDisabled(get,set) : Bool;
@:flash.property var postingEnabled(get,set) : Bool;
@:flash.property var routingEnabled(get,set) : Bool;
@:flash.property var serverChannelEnabled(get,set) : Bool;
function new(name : String) : Void;
function addBootstrapPeer(peerID : String) : Void;
function addIPMulticastAddress(address : String, ?port : Dynamic, ?source : String) : Void;
function authorizations() : String;
private function get_ipMulticastMemberUpdatesEnabled() : Bool;
private function get_minGroupspecVersion() : Int;
private function get_multicastEnabled() : Bool;
private function get_objectReplicationEnabled() : Bool;
private function get_peerToPeerDisabled() : Bool;
private function get_postingEnabled() : Bool;
private function get_routingEnabled() : Bool;
private function get_serverChannelEnabled() : Bool;
function groupspecWithAuthorizations() : String;
function groupspecWithoutAuthorizations() : String;
function makeUnique() : Void;
function setPostingPassword(?password : String, ?salt : String) : Void;
function setPublishPassword(?password : String, ?salt : String) : Void;
private function set_ipMulticastMemberUpdatesEnabled(value : Bool) : Bool;
private function set_minGroupspecVersion(value : Int) : Int;
private function set_multicastEnabled(value : Bool) : Bool;
private function set_objectReplicationEnabled(value : Bool) : Bool;
private function set_peerToPeerDisabled(value : Bool) : Bool;
private function set_postingEnabled(value : Bool) : Bool;
private function set_routingEnabled(value : Bool) : Bool;
private function set_serverChannelEnabled(value : Bool) : Bool;
function toString() : String;
@:flash.property static var maxSupportedGroupspecVersion(get,never) : Int;
static function encodeBootstrapPeerIDSpec(peerID : String) : String;
static function encodeIPMulticastAddressSpec(address : String, ?port : Dynamic, ?source : String) : String;
static function encodePostingAuthorization(password : String) : String;
static function encodePublishAuthorization(password : String) : String;
private static function get_maxSupportedGroupspecVersion() : Int;
}

View File

@ -0,0 +1,5 @@
package flash.net;
extern interface IDynamicPropertyOutput {
function writeDynamicProperty(name : String, value : Dynamic) : Void;
}

View File

@ -0,0 +1,5 @@
package flash.net;
extern interface IDynamicPropertyWriter {
function writeDynamicProperties(obj : flash.utils.Object, output : IDynamicPropertyOutput) : Void;
}

View File

@ -0,0 +1,20 @@
package flash.net;
extern class LocalConnection extends flash.events.EventDispatcher {
@:flash.property var client(get,set) : Dynamic;
@:flash.property var domain(get,never) : String;
@:flash.property @:require(flash10_1) var isPerUser(get,set) : Bool;
function new() : Void;
function allowDomain(restArgs : haxe.extern.Rest<Dynamic>) : Void;
function allowInsecureDomain(restArgs : haxe.extern.Rest<Dynamic>) : Void;
function close() : Void;
function connect(connectionName : String) : Void;
private function get_client() : Dynamic;
private function get_domain() : String;
private function get_isPerUser() : Bool;
function send(connectionName : String, methodName : String, restArgs : haxe.extern.Rest<Dynamic>) : Void;
private function set_client(value : Dynamic) : Dynamic;
private function set_isPerUser(value : Bool) : Bool;
@:flash.property @:require(flash10_1) static var isSupported(get,never) : Bool;
private static function get_isSupported() : Bool;
}

View File

@ -0,0 +1,44 @@
package flash.net;
extern class NetConnection extends flash.events.EventDispatcher {
@:flash.property var client(get,set) : Dynamic;
@:flash.property var connected(get,never) : Bool;
@:flash.property var connectedProxyType(get,never) : String;
@:flash.property @:require(flash10) var farID(get,never) : String;
@:flash.property @:require(flash10) var farNonce(get,never) : String;
@:flash.property @:require(flash10) var maxPeerConnections(get,set) : UInt;
@:flash.property @:require(flash10) var nearID(get,never) : String;
@:flash.property @:require(flash10) var nearNonce(get,never) : String;
@:flash.property var objectEncoding(get,set) : UInt;
@:flash.property @:require(flash10) var protocol(get,never) : String;
@:flash.property var proxyType(get,set) : String;
@:flash.property @:require(flash10) var unconnectedPeerStreams(get,never) : Array<Dynamic>;
@:flash.property var uri(get,never) : String;
@:flash.property var usingTLS(get,never) : Bool;
function new() : Void;
function addHeader(operation : String, mustUnderstand : Bool = false, ?param : flash.utils.Object) : Void;
function call(command : String, responder : Responder, restArgs : haxe.extern.Rest<Dynamic>) : Void;
function close() : Void;
function connect(command : String, restArgs : haxe.extern.Rest<Dynamic>) : Void;
private function get_client() : Dynamic;
private function get_connected() : Bool;
private function get_connectedProxyType() : String;
private function get_farID() : String;
private function get_farNonce() : String;
private function get_maxPeerConnections() : UInt;
private function get_nearID() : String;
private function get_nearNonce() : String;
private function get_objectEncoding() : UInt;
private function get_protocol() : String;
private function get_proxyType() : String;
private function get_unconnectedPeerStreams() : Array<Dynamic>;
private function get_uri() : String;
private function get_usingTLS() : Bool;
private function set_client(value : Dynamic) : Dynamic;
private function set_maxPeerConnections(value : UInt) : UInt;
private function set_objectEncoding(value : UInt) : UInt;
private function set_proxyType(value : String) : String;
@:flash.property static var defaultObjectEncoding(get,set) : UInt;
private static function get_defaultObjectEncoding() : UInt;
private static function set_defaultObjectEncoding(value : UInt) : UInt;
}

View File

@ -0,0 +1,35 @@
package flash.net;
@:require(flash10_1) extern class NetGroup extends flash.events.EventDispatcher {
@:flash.property var estimatedMemberCount(get,never) : Float;
@:flash.property var info(get,never) : NetGroupInfo;
@:flash.property var localCoverageFrom(get,never) : String;
@:flash.property var localCoverageTo(get,never) : String;
@:flash.property var neighborCount(get,never) : Float;
@:flash.property var receiveMode(get,set) : String;
@:flash.property var replicationStrategy(get,set) : String;
function new(connection : NetConnection, groupspec : String) : Void;
function addHaveObjects(startIndex : Float, endIndex : Float) : Void;
function addMemberHint(peerID : String) : Bool;
function addNeighbor(peerID : String) : Bool;
function addWantObjects(startIndex : Float, endIndex : Float) : Void;
function close() : Void;
function convertPeerIDToGroupAddress(peerID : String) : String;
function denyRequestedObject(requestID : Int) : Void;
private function get_estimatedMemberCount() : Float;
private function get_info() : NetGroupInfo;
private function get_localCoverageFrom() : String;
private function get_localCoverageTo() : String;
private function get_neighborCount() : Float;
private function get_receiveMode() : String;
private function get_replicationStrategy() : String;
function post(message : flash.utils.Object) : String;
function removeHaveObjects(startIndex : Float, endIndex : Float) : Void;
function removeWantObjects(startIndex : Float, endIndex : Float) : Void;
function sendToAllNeighbors(message : flash.utils.Object) : String;
function sendToNearest(message : flash.utils.Object, groupAddress : String) : String;
function sendToNeighbor(message : flash.utils.Object, sendMode : String) : String;
private function set_receiveMode(value : String) : String;
private function set_replicationStrategy(value : String) : String;
function writeRequestedObject(requestID : Int, object : flash.utils.Object) : Void;
}

View File

@ -0,0 +1,22 @@
package flash.net;
@:require(flash10_1) extern final class NetGroupInfo {
@:flash.property var objectReplicationReceiveBytesPerSecond(get,never) : Float;
@:flash.property var objectReplicationSendBytesPerSecond(get,never) : Float;
@:flash.property var postingReceiveControlBytesPerSecond(get,never) : Float;
@:flash.property var postingReceiveDataBytesPerSecond(get,never) : Float;
@:flash.property var postingSendControlBytesPerSecond(get,never) : Float;
@:flash.property var postingSendDataBytesPerSecond(get,never) : Float;
@:flash.property var routingReceiveBytesPerSecond(get,never) : Float;
@:flash.property var routingSendBytesPerSecond(get,never) : Float;
function new(postingSendDataBytesPerSecond : Float, postingSendControlBytesPerSecond : Float, postingReceiveDataBytesPerSecond : Float, postingReceiveControlBytesPerSecond : Float, routingSendBytesPerSecond : Float, routingReceiveBytesPerSecond : Float, objectReplicationSendBytesPerSecond : Float, objectReplicationReceiveBytesPerSecond : Float) : Void;
private function get_objectReplicationReceiveBytesPerSecond() : Float;
private function get_objectReplicationSendBytesPerSecond() : Float;
private function get_postingReceiveControlBytesPerSecond() : Float;
private function get_postingReceiveDataBytesPerSecond() : Float;
private function get_postingSendControlBytesPerSecond() : Float;
private function get_postingSendDataBytesPerSecond() : Float;
private function get_routingReceiveBytesPerSecond() : Float;
private function get_routingSendBytesPerSecond() : Float;
function toString() : String;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern class NetGroupReceiveMode {
function new() : Void;
static final EXACT : String;
static final NEAREST : String;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern class NetGroupReplicationStrategy {
function new() : Void;
static final LOWEST_FIRST : String;
static final RAREST_FIRST : String;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern class NetGroupSendMode {
function new() : Void;
static final NEXT_DECREASING : String;
static final NEXT_INCREASING : String;
}

View File

@ -0,0 +1,8 @@
package flash.net;
extern class NetGroupSendResult {
function new() : Void;
static final ERROR : String;
static final NO_ROUTE : String;
static final SENT : String;
}

View File

@ -0,0 +1,6 @@
package flash.net;
@:require(flash11) extern class NetMonitor extends flash.events.EventDispatcher {
function new() : Void;
function listStreams() : flash.Vector<NetStream>;
}

View File

@ -0,0 +1,128 @@
package flash.net;
extern class NetStream extends flash.events.EventDispatcher {
@:flash.property var audioCodec(get,never) : UInt;
@:flash.property @:require(flash10_1) var audioReliable(get,set) : Bool;
@:flash.property @:require(flash10_1) var audioSampleAccess(get,set) : Bool;
@:flash.property @:require(flash10_1) var backBufferLength(get,never) : Float;
@:flash.property @:require(flash10_1) var backBufferTime(get,set) : Float;
@:flash.property var bufferLength(get,never) : Float;
@:flash.property var bufferTime(get,set) : Float;
@:flash.property @:require(flash10_1) var bufferTimeMax(get,set) : Float;
@:flash.property var bytesLoaded(get,never) : UInt;
@:flash.property var bytesTotal(get,never) : UInt;
@:flash.property var checkPolicyFile(get,set) : Bool;
@:flash.property var client(get,set) : Dynamic;
@:flash.property var currentFPS(get,never) : Float;
@:flash.property @:require(flash10_1) var dataReliable(get,set) : Bool;
@:flash.property var decodedFrames(get,never) : UInt;
@:flash.property @:require(flash10) var farID(get,never) : String;
@:flash.property @:require(flash10) var farNonce(get,never) : String;
@:flash.property @:require(flash10_1) var inBufferSeek(get,set) : Bool;
@:flash.property @:require(flash10) var info(get,never) : NetStreamInfo;
@:flash.property var liveDelay(get,never) : Float;
@:flash.property @:require(flash10) var maxPauseBufferTime(get,set) : Float;
@:flash.property @:require(flash10_1) var multicastAvailabilitySendToAll(get,set) : Bool;
@:flash.property @:require(flash10_1) var multicastAvailabilityUpdatePeriod(get,set) : Float;
@:flash.property @:require(flash10_1) var multicastFetchPeriod(get,set) : Float;
@:flash.property @:require(flash10_1) var multicastInfo(get,never) : NetStreamMulticastInfo;
@:flash.property @:require(flash10_1) var multicastPushNeighborLimit(get,set) : Float;
@:flash.property @:require(flash10_1) var multicastRelayMarginDuration(get,set) : Float;
@:flash.property @:require(flash10_1) var multicastWindowDuration(get,set) : Float;
@:flash.property @:require(flash10) var nearNonce(get,never) : String;
@:flash.property var objectEncoding(get,never) : UInt;
@:flash.property @:require(flash10) var peerStreams(get,never) : Array<Dynamic>;
@:flash.property var soundTransform(get,set) : flash.media.SoundTransform;
@:flash.property var time(get,never) : Float;
@:flash.property @:require(flash11) var useHardwareDecoder(get,set) : Bool;
@:flash.property @:require(flash11_3) var useJitterBuffer(get,set) : Bool;
@:flash.property var videoCodec(get,never) : UInt;
@:flash.property @:require(flash10_1) var videoReliable(get,set) : Bool;
@:flash.property @:require(flash10_1) var videoSampleAccess(get,set) : Bool;
@:flash.property @:require(flash11) var videoStreamSettings(get,set) : flash.media.VideoStreamSettings;
function new(connection : NetConnection, ?peerID : String) : Void;
@:require(flash10_1) function appendBytes(bytes : flash.utils.ByteArray) : Void;
@:require(flash10_1) function appendBytesAction(netStreamAppendBytesAction : String) : Void;
@:require(flash10_1) function attach(connection : NetConnection) : Void;
function attachAudio(microphone : flash.media.Microphone) : Void;
function attachCamera(theCamera : flash.media.Camera, snapshotMilliseconds : Int = -1) : Void;
function close() : Void;
@:require(flash11_2) function dispose() : Void;
private function get_audioCodec() : UInt;
private function get_audioReliable() : Bool;
private function get_audioSampleAccess() : Bool;
private function get_backBufferLength() : Float;
private function get_backBufferTime() : Float;
private function get_bufferLength() : Float;
private function get_bufferTime() : Float;
private function get_bufferTimeMax() : Float;
private function get_bytesLoaded() : UInt;
private function get_bytesTotal() : UInt;
private function get_checkPolicyFile() : Bool;
private function get_client() : Dynamic;
private function get_currentFPS() : Float;
private function get_dataReliable() : Bool;
private function get_decodedFrames() : UInt;
private function get_farID() : String;
private function get_farNonce() : String;
private function get_inBufferSeek() : Bool;
private function get_info() : NetStreamInfo;
private function get_liveDelay() : Float;
private function get_maxPauseBufferTime() : Float;
private function get_multicastAvailabilitySendToAll() : Bool;
private function get_multicastAvailabilityUpdatePeriod() : Float;
private function get_multicastFetchPeriod() : Float;
private function get_multicastInfo() : NetStreamMulticastInfo;
private function get_multicastPushNeighborLimit() : Float;
private function get_multicastRelayMarginDuration() : Float;
private function get_multicastWindowDuration() : Float;
private function get_nearNonce() : String;
private function get_objectEncoding() : UInt;
private function get_peerStreams() : Array<Dynamic>;
private function get_soundTransform() : flash.media.SoundTransform;
private function get_time() : Float;
private function get_useHardwareDecoder() : Bool;
private function get_useJitterBuffer() : Bool;
private function get_videoCodec() : UInt;
private function get_videoReliable() : Bool;
private function get_videoSampleAccess() : Bool;
private function get_videoStreamSettings() : flash.media.VideoStreamSettings;
@:require(flash10) function onPeerConnect(subscriber : NetStream) : Bool;
function pause() : Void;
function play(restArgs : haxe.extern.Rest<Dynamic>) : Void;
@:require(flash10) function play2(param : NetStreamPlayOptions) : Void;
function publish(?name : String, ?type : String) : Void;
function receiveAudio(flag : Bool) : Void;
function receiveVideo(flag : Bool) : Void;
function receiveVideoFPS(FPS : Float) : Void;
function resume() : Void;
function seek(offset : Float) : Void;
function send(handlerName : String, restArgs : haxe.extern.Rest<Dynamic>) : Void;
private function set_audioReliable(value : Bool) : Bool;
private function set_audioSampleAccess(value : Bool) : Bool;
private function set_backBufferTime(value : Float) : Float;
private function set_bufferTime(value : Float) : Float;
private function set_bufferTimeMax(value : Float) : Float;
private function set_checkPolicyFile(value : Bool) : Bool;
private function set_client(value : Dynamic) : Dynamic;
private function set_dataReliable(value : Bool) : Bool;
private function set_inBufferSeek(value : Bool) : Bool;
private function set_maxPauseBufferTime(value : Float) : Float;
private function set_multicastAvailabilitySendToAll(value : Bool) : Bool;
private function set_multicastAvailabilityUpdatePeriod(value : Float) : Float;
private function set_multicastFetchPeriod(value : Float) : Float;
private function set_multicastPushNeighborLimit(value : Float) : Float;
private function set_multicastRelayMarginDuration(value : Float) : Float;
private function set_multicastWindowDuration(value : Float) : Float;
private function set_soundTransform(value : flash.media.SoundTransform) : flash.media.SoundTransform;
private function set_useHardwareDecoder(value : Bool) : Bool;
private function set_useJitterBuffer(value : Bool) : Bool;
private function set_videoReliable(value : Bool) : Bool;
private function set_videoSampleAccess(value : Bool) : Bool;
private function set_videoStreamSettings(value : flash.media.VideoStreamSettings) : flash.media.VideoStreamSettings;
@:require(flash10_1) function step(frames : Int) : Void;
function togglePause() : Void;
@:require(flash10) static final CONNECT_TO_FMS : String;
@:require(flash10) static final DIRECT_CONNECTIONS : String;
static function resetDRMVouchers() : Void;
}

View File

@ -0,0 +1,8 @@
package flash.net;
extern class NetStreamAppendBytesAction {
function new() : Void;
static final END_SEQUENCE : String;
static final RESET_BEGIN : String;
static final RESET_SEEK : String;
}

View File

@ -0,0 +1,56 @@
package flash.net;
extern final class NetStreamInfo {
@:flash.property var SRTT(get,never) : Float;
@:flash.property var audioBufferByteLength(get,never) : Float;
@:flash.property var audioBufferLength(get,never) : Float;
@:flash.property var audioByteCount(get,never) : Float;
@:flash.property var audioBytesPerSecond(get,never) : Float;
@:flash.property var audioLossRate(get,never) : Float;
@:flash.property var byteCount(get,never) : Float;
@:flash.property var currentBytesPerSecond(get,never) : Float;
@:flash.property var dataBufferByteLength(get,never) : Float;
@:flash.property var dataBufferLength(get,never) : Float;
@:flash.property var dataByteCount(get,never) : Float;
@:flash.property var dataBytesPerSecond(get,never) : Float;
@:flash.property var droppedFrames(get,never) : Float;
@:flash.property var isLive(get,never) : Bool;
@:flash.property var maxBytesPerSecond(get,never) : Float;
@:flash.property var metaData(get,never) : Dynamic;
@:flash.property var playbackBytesPerSecond(get,never) : Float;
@:flash.property var resourceName(get,never) : String;
@:flash.property var uri(get,never) : String;
@:flash.property var videoBufferByteLength(get,never) : Float;
@:flash.property var videoBufferLength(get,never) : Float;
@:flash.property var videoByteCount(get,never) : Float;
@:flash.property var videoBytesPerSecond(get,never) : Float;
@:flash.property @:require(flash10_1) var videoLossRate(get,never) : Float;
@:flash.property var xmpData(get,never) : Dynamic;
function new(curBPS : Float, byteCount : Float, maxBPS : Float, audioBPS : Float, audioByteCount : Float, videoBPS : Float, videoByteCount : Float, dataBPS : Float, dataByteCount : Float, playbackBPS : Float, droppedFrames : Float, audioBufferByteLength : Float, videoBufferByteLength : Float, dataBufferByteLength : Float, audioBufferLength : Float, videoBufferLength : Float, dataBufferLength : Float, srtt : Float, audioLossRate : Float, videoLossRate : Float, ?metaData : Dynamic, ?xmpData : Dynamic, ?uri : String, ?resourceName : String, isLive : Bool = true) : Void;
private function get_SRTT() : Float;
private function get_audioBufferByteLength() : Float;
private function get_audioBufferLength() : Float;
private function get_audioByteCount() : Float;
private function get_audioBytesPerSecond() : Float;
private function get_audioLossRate() : Float;
private function get_byteCount() : Float;
private function get_currentBytesPerSecond() : Float;
private function get_dataBufferByteLength() : Float;
private function get_dataBufferLength() : Float;
private function get_dataByteCount() : Float;
private function get_dataBytesPerSecond() : Float;
private function get_droppedFrames() : Float;
private function get_isLive() : Bool;
private function get_maxBytesPerSecond() : Float;
private function get_metaData() : Dynamic;
private function get_playbackBytesPerSecond() : Float;
private function get_resourceName() : String;
private function get_uri() : String;
private function get_videoBufferByteLength() : Float;
private function get_videoBufferLength() : Float;
private function get_videoByteCount() : Float;
private function get_videoBytesPerSecond() : Float;
private function get_videoLossRate() : Float;
private function get_xmpData() : Dynamic;
function toString() : String;
}

View File

@ -0,0 +1,44 @@
package flash.net;
@:require(flash10_1) extern final class NetStreamMulticastInfo {
@:flash.property var bytesPushedFromPeers(get,never) : Float;
@:flash.property var bytesPushedToPeers(get,never) : Float;
@:flash.property var bytesReceivedFromIPMulticast(get,never) : Float;
@:flash.property var bytesReceivedFromServer(get,never) : Float;
@:flash.property var bytesRequestedByPeers(get,never) : Float;
@:flash.property var bytesRequestedFromPeers(get,never) : Float;
@:flash.property var fragmentsPushedFromPeers(get,never) : Float;
@:flash.property var fragmentsPushedToPeers(get,never) : Float;
@:flash.property var fragmentsReceivedFromIPMulticast(get,never) : Float;
@:flash.property var fragmentsReceivedFromServer(get,never) : Float;
@:flash.property var fragmentsRequestedByPeers(get,never) : Float;
@:flash.property var fragmentsRequestedFromPeers(get,never) : Float;
@:flash.property var receiveControlBytesPerSecond(get,never) : Float;
@:flash.property var receiveDataBytesPerSecond(get,never) : Float;
@:flash.property var receiveDataBytesPerSecondFromIPMulticast(get,never) : Float;
@:flash.property var receiveDataBytesPerSecondFromServer(get,never) : Float;
@:flash.property var sendControlBytesPerSecond(get,never) : Float;
@:flash.property var sendControlBytesPerSecondToServer(get,never) : Float;
@:flash.property var sendDataBytesPerSecond(get,never) : Float;
function new(sendDataBytesPerSecond : Float, sendControlBytesPerSecond : Float, receiveDataBytesPerSecond : Float, receiveControlBytesPerSecond : Float, bytesPushedToPeers : Float, fragmentsPushedToPeers : Float, bytesRequestedByPeers : Float, fragmentsRequestedByPeers : Float, bytesPushedFromPeers : Float, fragmentsPushedFromPeers : Float, bytesRequestedFromPeers : Float, fragmentsRequestedFromPeers : Float, sendControlBytesPerSecondToServer : Float, receiveDataBytesPerSecondFromServer : Float, bytesReceivedFromServer : Float, fragmentsReceivedFromServer : Float, receiveDataBytesPerSecondFromIPMulticast : Float, bytesReceivedFromIPMulticast : Float, fragmentsReceivedFromIPMulticast : Float) : Void;
private function get_bytesPushedFromPeers() : Float;
private function get_bytesPushedToPeers() : Float;
private function get_bytesReceivedFromIPMulticast() : Float;
private function get_bytesReceivedFromServer() : Float;
private function get_bytesRequestedByPeers() : Float;
private function get_bytesRequestedFromPeers() : Float;
private function get_fragmentsPushedFromPeers() : Float;
private function get_fragmentsPushedToPeers() : Float;
private function get_fragmentsReceivedFromIPMulticast() : Float;
private function get_fragmentsReceivedFromServer() : Float;
private function get_fragmentsRequestedByPeers() : Float;
private function get_fragmentsRequestedFromPeers() : Float;
private function get_receiveControlBytesPerSecond() : Float;
private function get_receiveDataBytesPerSecond() : Float;
private function get_receiveDataBytesPerSecondFromIPMulticast() : Float;
private function get_receiveDataBytesPerSecondFromServer() : Float;
private function get_sendControlBytesPerSecond() : Float;
private function get_sendControlBytesPerSecondToServer() : Float;
private function get_sendDataBytesPerSecond() : Float;
function toString() : String;
}

View File

@ -0,0 +1,11 @@
package flash.net;
extern class NetStreamPlayOptions extends flash.events.EventDispatcher implements Dynamic {
var len : Float;
@:require(flash10_1) var offset : Float;
var oldStreamName : String;
var start : Float;
var streamName : String;
var transition : String;
function new() : Void;
}

View File

@ -0,0 +1,9 @@
package flash.net;
extern enum NetStreamPlayTransitions {
SWAP;
SWITCH;
STOP;
APPEND;
RESET;
}

View File

@ -0,0 +1,10 @@
package flash.net;
extern class ObjectEncoding {
static final AMF0 : UInt;
static final AMF3 : UInt;
static final DEFAULT : UInt;
@:flash.property static var dynamicPropertyWriter(get,set) : IDynamicPropertyWriter;
private static function get_dynamicPropertyWriter() : IDynamicPropertyWriter;
private static function set_dynamicPropertyWriter(value : IDynamicPropertyWriter) : IDynamicPropertyWriter;
}

View File

@ -0,0 +1,5 @@
package flash.net;
extern class Responder {
function new(result : Dynamic, ?status : Dynamic) : Void;
}

View File

@ -0,0 +1,12 @@
package flash.net;
@:require(flash11) extern class SecureSocket extends Socket {
@:flash.property var serverCertificate(get,never) : flash.security.X509Certificate;
@:flash.property var serverCertificateStatus(get,never) : String;
function new() : Void;
function addBinaryChainBuildingCertificate(certificate : flash.utils.ByteArray, trusted : Bool) : Void;
private function get_serverCertificate() : flash.security.X509Certificate;
private function get_serverCertificateStatus() : String;
@:flash.property static var isSupported(get,never) : Bool;
private static function get_isSupported() : Bool;
}

View File

@ -0,0 +1,34 @@
package flash.net;
extern class SharedObject extends flash.events.EventDispatcher {
@:flash.property var client(get,set) : Dynamic;
@:flash.property var data(get,never) : Dynamic;
@:flash.property var fps(never,set) : Float;
@:flash.property var objectEncoding(get,set) : UInt;
@:flash.property var size(get,never) : UInt;
function new() : Void;
function clear() : Void;
function close() : Void;
function connect(myConnection : NetConnection, ?params : String) : Void;
function flush(minDiskSpace : Int = 0) : String;
private function get_client() : Dynamic;
private function get_data() : Dynamic;
private function get_objectEncoding() : UInt;
private function get_size() : UInt;
function send(restArgs : haxe.extern.Rest<Dynamic>) : Void;
function setDirty(propertyName : String) : Void;
function setProperty(propertyName : String, ?value : flash.utils.Object) : Void;
private function set_client(value : Dynamic) : Dynamic;
private function set_fps(value : Float) : Float;
private function set_objectEncoding(value : UInt) : UInt;
@:flash.property static var defaultObjectEncoding(get,set) : UInt;
@:flash.property @:require(flash11_7) static var preventBackup(get,set) : Bool;
static function deleteAll(url : String) : Int;
static function getDiskUsage(url : String) : Int;
static function getLocal(name : String, ?localPath : String, secure : Bool = false) : SharedObject;
static function getRemote(name : String, ?remotePath : String, persistence : Dynamic = false, secure : Bool = false) : SharedObject;
private static function get_defaultObjectEncoding() : UInt;
private static function get_preventBackup() : Bool;
private static function set_defaultObjectEncoding(value : UInt) : UInt;
private static function set_preventBackup(value : Bool) : Bool;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern class SharedObjectFlushStatus {
function new() : Void;
static final FLUSHED : String;
static final PENDING : String;
}

View File

@ -0,0 +1,49 @@
package flash.net;
extern class Socket extends flash.events.EventDispatcher implements flash.utils.IDataOutput implements flash.utils.IDataInput {
@:flash.property var bytesAvailable(get,never) : UInt;
@:flash.property @:require(flash11) var bytesPending(get,never) : UInt;
@:flash.property var connected(get,never) : Bool;
@:flash.property var endian(get,set) : flash.utils.Endian;
@:flash.property var objectEncoding(get,set) : UInt;
@:flash.property @:require(flash10) var timeout(get,set) : UInt;
function new(?host : String, port : Int = 0) : Void;
function close() : Void;
function connect(host : String, port : Int) : Void;
function flush() : Void;
private function get_bytesAvailable() : UInt;
private function get_bytesPending() : UInt;
private function get_connected() : Bool;
private function get_endian() : flash.utils.Endian;
private function get_objectEncoding() : UInt;
private function get_timeout() : UInt;
function readBoolean() : Bool;
function readByte() : Int;
function readBytes(bytes : flash.utils.ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
function readDouble() : Float;
function readFloat() : Float;
function readInt() : Int;
function readMultiByte(length : UInt, charSet : String) : String;
function readObject() : Dynamic;
function readShort() : Int;
function readUTF() : String;
function readUTFBytes(length : UInt) : String;
function readUnsignedByte() : UInt;
function readUnsignedInt() : UInt;
function readUnsignedShort() : UInt;
private function set_endian(value : flash.utils.Endian) : flash.utils.Endian;
private function set_objectEncoding(value : UInt) : UInt;
private function set_timeout(value : UInt) : UInt;
function writeBoolean(value : Bool) : Void;
function writeByte(value : Int) : Void;
function writeBytes(bytes : flash.utils.ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
function writeDouble(value : Float) : Void;
function writeFloat(value : Float) : Void;
function writeInt(value : Int) : Void;
function writeMultiByte(value : String, charSet : String) : Void;
function writeObject(object : Dynamic) : Void;
function writeShort(value : Int) : Void;
function writeUTF(value : String) : Void;
function writeUTFBytes(value : String) : Void;
function writeUnsignedInt(value : UInt) : Void;
}

View File

@ -0,0 +1,11 @@
package flash.net;
extern class URLLoader extends flash.events.EventDispatcher {
var bytesLoaded : UInt;
var bytesTotal : UInt;
var data : Dynamic;
var dataFormat : URLLoaderDataFormat;
function new(?request : URLRequest) : Void;
function close() : Void;
function load(request : URLRequest) : Void;
}

View File

@ -0,0 +1,7 @@
package flash.net;
@:native("flash.net.URLLoaderDataFormat") extern enum abstract URLLoaderDataFormat(String) {
var BINARY;
var TEXT;
var VARIABLES;
}

View File

@ -0,0 +1,24 @@
package flash.net;
extern final class URLRequest {
@:flash.property var contentType(get,set) : String;
@:flash.property var data(get,set) : Dynamic;
@:flash.property var digest(get,set) : String;
@:flash.property var method(get,set) : String;
@:flash.property var requestHeaders(get,set) : Array<URLRequestHeader>;
@:flash.property var url(get,set) : String;
function new(?url : String) : Void;
private function get_contentType() : String;
private function get_data() : Dynamic;
private function get_digest() : String;
private function get_method() : String;
private function get_requestHeaders() : Array<URLRequestHeader>;
private function get_url() : String;
private function set_contentType(value : String) : String;
private function set_data(value : Dynamic) : Dynamic;
private function set_digest(value : String) : String;
private function set_method(value : String) : String;
private function set_requestHeaders(value : Array<URLRequestHeader>) : Array<URLRequestHeader>;
private function set_url(value : String) : String;
function useRedirectedURL(sourceRequest : URLRequest, wholeURL : Bool = false, ?pattern : Dynamic, ?replace : String) : Void;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern final class URLRequestHeader {
var name : String;
var value : String;
function new(?name : String, ?value : String) : Void;
}

View File

@ -0,0 +1,10 @@
package flash.net;
extern class URLRequestMethod {
@:require(flash10_1) static final DELETE : String;
static final GET : String;
@:require(flash10_1) static final HEAD : String;
@:require(flash10_1) static final OPTIONS : String;
static final POST : String;
@:require(flash10_1) static final PUT : String;
}

View File

@ -0,0 +1,39 @@
package flash.net;
extern class URLStream extends flash.events.EventDispatcher implements flash.utils.IDataInput {
@:flash.property var bytesAvailable(get,never) : UInt;
@:flash.property var connected(get,never) : Bool;
@:flash.property @:require(flash11_4) var diskCacheEnabled(get,never) : Bool;
@:flash.property var endian(get,set) : flash.utils.Endian;
@:flash.property @:require(flash11_4) var length(get,never) : Float;
@:flash.property var objectEncoding(get,set) : UInt;
@:flash.property @:require(flash11_4) var position(get,set) : Float;
function new() : Void;
function close() : Void;
private function get_bytesAvailable() : UInt;
private function get_connected() : Bool;
private function get_diskCacheEnabled() : Bool;
private function get_endian() : flash.utils.Endian;
private function get_length() : Float;
private function get_objectEncoding() : UInt;
private function get_position() : Float;
function load(request : URLRequest) : Void;
function readBoolean() : Bool;
function readByte() : Int;
function readBytes(bytes : flash.utils.ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
function readDouble() : Float;
function readFloat() : Float;
function readInt() : Int;
function readMultiByte(length : UInt, charSet : String) : String;
function readObject() : Dynamic;
function readShort() : Int;
function readUTF() : String;
function readUTFBytes(length : UInt) : String;
function readUnsignedByte() : UInt;
function readUnsignedInt() : UInt;
function readUnsignedShort() : UInt;
private function set_endian(value : flash.utils.Endian) : flash.utils.Endian;
private function set_objectEncoding(value : UInt) : UInt;
private function set_position(value : Float) : Float;
@:require(flash11_4) function stop() : Void;
}

View File

@ -0,0 +1,7 @@
package flash.net;
extern class URLVariables implements Dynamic {
function new(?source : String) : Void;
function decode(source : String) : Void;
function toString() : String;
}

View File

@ -0,0 +1,13 @@
package flash.net;
extern class XMLSocket extends flash.events.EventDispatcher {
@:flash.property var connected(get,never) : Bool;
@:flash.property @:require(flash10) var timeout(get,set) : Int;
function new(?host : String, port : Int = 0) : Void;
function close() : Void;
function connect(host : String, port : Int) : Void;
private function get_connected() : Bool;
private function get_timeout() : Int;
function send(object : Dynamic) : Void;
private function set_timeout(value : Int) : Int;
}

View File

@ -0,0 +1,8 @@
package flash.net.drm;
extern class AddToDeviceGroupSetting {
function new() : Void;
static final ALLOW_SERVER : String;
static final FORCE_REFRESH : String;
static final LOCAL_ONLY : String;
}

View File

@ -0,0 +1,7 @@
package flash.net.drm;
extern class AuthenticationMethod {
function new() : Void;
static final ANONYMOUS : String;
static final USERNAME_AND_PASSWORD : String;
}

View File

@ -0,0 +1,6 @@
package flash.net.drm;
extern class DRMAddToDeviceGroupContext extends DRMManagerSession {
function new() : Void;
function addToDeviceGroup(deviceGroup : DRMDeviceGroup, forceRefresh : Bool) : Void;
}

View File

@ -0,0 +1,8 @@
package flash.net.drm;
extern class DRMAuthenticationContext extends DRMManagerSession {
@:flash.property var authenticationToken(get,never) : flash.utils.ByteArray;
function new() : Void;
function authenticate(url : String, domain : String, username : String, password : String) : Void;
private function get_authenticationToken() : flash.utils.ByteArray;
}

View File

@ -0,0 +1,14 @@
package flash.net.drm;
extern class DRMContentData {
@:flash.property var authenticationMethod(get,never) : String;
@:flash.property var domain(get,never) : String;
@:flash.property var licenseID(get,never) : String;
@:flash.property var serverURL(get,never) : String;
function new(?rawData : flash.utils.ByteArray) : Void;
function getVoucherAccessInfo() : flash.Vector<VoucherAccessInfo>;
private function get_authenticationMethod() : String;
private function get_domain() : String;
private function get_licenseID() : String;
private function get_serverURL() : String;
}

View File

@ -0,0 +1,14 @@
package flash.net.drm;
extern final class DRMDeviceGroup {
@:flash.property var authenticationMethod(get,never) : String;
@:flash.property var domain(get,never) : String;
@:flash.property var name(get,set) : String;
@:flash.property var serverURL(get,never) : String;
function new() : Void;
private function get_authenticationMethod() : String;
private function get_domain() : String;
private function get_name() : String;
private function get_serverURL() : String;
private function set_name(value : String) : String;
}

View File

@ -0,0 +1,22 @@
package flash.net.drm;
extern class DRMManager extends flash.events.EventDispatcher {
function new() : Void;
function addToDeviceGroup(deviceGroup : DRMDeviceGroup, forceRefresh : Bool = false) : Void;
function authenticate(serverURL : String, domain : String, username : String, password : String) : Void;
function loadPreviewVoucher(contentData : DRMContentData) : Void;
function loadVoucher(contentData : DRMContentData, setting : String) : Void;
function removeFromDeviceGroup(deviceGroup : DRMDeviceGroup) : Void;
function resetDRMVouchers() : Void;
@:ns("flash.net.drm",internal) function resetDRMVouchersInternal(isAutoReset : Bool) : Void;
function returnVoucher(inServerURL : String, immediateCommit : Bool, licenseID : String, policyID : String) : Void;
function setAuthenticationToken(serverUrl : String, domain : String, token : flash.utils.ByteArray) : Void;
function storeVoucher(voucher : flash.utils.ByteArray) : Void;
@:flash.property static var isSupported(get,never) : Bool;
@:flash.property static var networkIdleTimeout(get,set) : Float;
static function getDRMManager() : DRMManager;
@:ns("flash.net.drm",internal) static function getDRMManagerInternal() : DRMManager;
private static function get_isSupported() : Bool;
private static function get_networkIdleTimeout() : Float;
private static function set_networkIdleTimeout(value : Float) : Float;
}

View File

@ -0,0 +1,23 @@
package flash.net.drm;
extern class DRMManagerSession extends flash.events.EventDispatcher {
var m_isInSession : Bool;
@:flash.property var metadata(get,set) : DRMContentData;
function new() : Void;
function checkStatus() : UInt;
function errorCodeToThrow(errorCode : UInt) : Void;
function getLastError() : UInt;
function getLastServerErrorString() : String;
function getLastSubErrorID() : UInt;
private function get_metadata() : DRMContentData;
function issueDRMErrorEvent(metadata : DRMContentData, errorID : Int, subErrorID : Int, serverErrorString : String) : Void;
function issueDRMStatusEvent(inMetadata : DRMContentData, voucher : DRMVoucher) : Dynamic;
function onSessionComplete() : Void;
function onSessionError() : Void;
function setTimerUp() : Void;
private function set_metadata(value : DRMContentData) : DRMContentData;
@:ns("flash.net.drm",internal) static final STATUS_FAILED : UInt;
@:ns("flash.net.drm",internal) static final STATUS_NOTREADY : UInt;
@:ns("flash.net.drm",internal) static final STATUS_READY : UInt;
@:ns("flash.net.drm",internal) static final STATUS_UNKNOWN : UInt;
}

View File

@ -0,0 +1,5 @@
package flash.net.drm;
extern class DRMModuleCycleProvider {
function new() : Void;
}

View File

@ -0,0 +1,11 @@
package flash.net.drm;
extern class DRMPlaybackTimeWindow {
@:flash.property var endDate(get,never) : Date;
@:flash.property var period(get,never) : UInt;
@:flash.property var startDate(get,never) : Date;
function new() : Void;
private function get_endDate() : Date;
private function get_period() : UInt;
private function get_startDate() : Date;
}

View File

@ -0,0 +1,6 @@
package flash.net.drm;
extern class DRMRemoveFromDeviceGroupContext extends DRMManagerSession {
function new() : Void;
function removeFromDeviceGroup(deviceGroup : DRMDeviceGroup) : Void;
}

View File

@ -0,0 +1,7 @@
package flash.net.drm;
extern class DRMResetContext extends DRMManagerSession {
var m_isAutoReset : Bool;
function new(isAutoReset : Bool) : Void;
function doReset() : Void;
}

View File

@ -0,0 +1,6 @@
package flash.net.drm;
extern class DRMReturnVoucherContext extends DRMManagerSession {
function new() : Void;
function returnVoucher(inServerURL : String, immediateCommit : Bool, licenseID : String, policyID : String) : Void;
}

View File

@ -0,0 +1,6 @@
package flash.net.drm;
extern class DRMStoreVoucherContext extends DRMManagerSession {
function new(voucher : flash.utils.ByteArray) : Void;
function doStoreVoucher() : Void;
}

View File

@ -0,0 +1,7 @@
package flash.net.drm;
extern class DRMURLDownloadContext extends flash.events.EventDispatcher {
function new() : Void;
function httpGetASync(url : String) : Void;
function httpPostAndReceiveASync(url : String, headerName : String, headerValue : String, data : flash.utils.ByteArray, serverType : UInt) : Void;
}

View File

@ -0,0 +1,24 @@
package flash.net.drm;
extern class DRMVoucher {
@:flash.property var licenseID(get,never) : String;
@:flash.property var offlineLeaseEndDate(get,never) : Date;
@:flash.property var offlineLeaseStartDate(get,never) : Date;
@:flash.property var playbackTimeWindow(get,never) : DRMPlaybackTimeWindow;
@:flash.property var policies(get,never) : Dynamic;
@:flash.property var policyID(get,never) : String;
@:flash.property var serverURL(get,never) : String;
@:flash.property var voucherEndDate(get,never) : Date;
@:flash.property var voucherStartDate(get,never) : Date;
function new() : Void;
private function get_licenseID() : String;
private function get_offlineLeaseEndDate() : Date;
private function get_offlineLeaseStartDate() : Date;
private function get_playbackTimeWindow() : DRMPlaybackTimeWindow;
private function get_policies() : Dynamic;
private function get_policyID() : String;
private function get_serverURL() : String;
private function get_voucherEndDate() : Date;
private function get_voucherStartDate() : Date;
function toByteArray() : flash.utils.ByteArray;
}

View File

@ -0,0 +1,8 @@
package flash.net.drm;
extern class DRMVoucherDownloadContext extends DRMManagerSession {
@:flash.property var voucher(get,never) : DRMVoucher;
function new() : Void;
function download(inMetadata : DRMContentData, previewVoucher : Bool = false) : Void;
private function get_voucher() : DRMVoucher;
}

View File

@ -0,0 +1,8 @@
package flash.net.drm;
extern class DRMVoucherStoreContext extends DRMManagerSession {
@:flash.property var voucher(get,never) : DRMVoucher;
function new() : Void;
function getVoucherFromStore(inMetadata : DRMContentData) : Void;
private function get_voucher() : DRMVoucher;
}

View File

@ -0,0 +1,8 @@
package flash.net.drm;
extern class LoadVoucherSetting {
function new() : Void;
static final ALLOW_SERVER : String;
static final FORCE_REFRESH : String;
static final LOCAL_ONLY : String;
}

View File

@ -0,0 +1,15 @@
package flash.net.drm;
extern final class VoucherAccessInfo {
@:flash.property var authenticationMethod(get,never) : String;
@:flash.property var deviceGroup(get,never) : DRMDeviceGroup;
@:flash.property var displayName(get,never) : String;
@:flash.property var domain(get,never) : String;
@:flash.property var policyID(get,never) : String;
function new() : Void;
private function get_authenticationMethod() : String;
private function get_deviceGroup() : DRMDeviceGroup;
private function get_displayName() : String;
private function get_domain() : String;
private function get_policyID() : String;
}