View source
class OutputProgressEvent
package openfl.events
extends Event
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
A FileStream object dispatches OutputProgressEvent objects as pendin
asynchronous file write operations are performed. There is one type of
output progress event: OutputProgressEvent.OUTPUT_PROGRESS
.
Static variables
staticinlineread onlyOUTPUT_PROGRESS:EventType<OutputProgressEvent> = "outputProgress"
Defines the value of the type
property of an outputProgress
event
object.
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, bytesPending:Float = 0, bytesTotal:Float = 0)
Creates an Event object that contains information about output progress events. Event objects are passed as parameters to event listeners.
Variables
bytesTotal:Float
The total number of bytes written so far, plus the number of pending bytes to be written.