UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

38 lines (37 loc) 1.2 kB
import { URLRequest } from "./URLRequest"; import { EventDispatcher } from "../events/EventDispatcher"; import { ByteArray } from "../utils/ByteArray"; export declare class URLStream extends EventDispatcher { xhr: XMLHttpRequest; constructor(); load: (v: URLRequest) => void; private xhr_error; private xhr_progress; private xhr_onreadystatechange; readBytes: (b: ByteArray, offset?: number, length?: number) => void; readBoolean(): boolean; readByte(): number; readUnsignedByte(): number; readShort(): number; readUnsignedShort(): number; readUnsignedInt(): number; readInt(): number; readFloat(): number; readDouble(): number; readMultiByte(param1: number, param2: string): string; readUTF(): string; readUTFBytes(param1: number): string; get connected(): boolean; get bytesAvailable(): number; close(): void; readObject(): any; get objectEncoding(): number; set objectEncoding(param1: number); get endian(): string; set endian(param1: string); get diskCacheEnabled(): boolean; get position(): number; set position(param1: number); get length(): number; stop(): void; }