Phaser API Documentation

  Version: 
onError(xhr, event)

Description:

Called if the file errors while loading, is sent a DOM ProgressEvent.

Parameters:

name type description
xhr XMLHttpRequest

The XMLHttpRequest that caused this onload event.

event ProgressEvent

The DOM ProgressEvent that resulted from this error.

Inherited from: Phaser.Loader.File#onError
Examples:
Since: 3.0.0
Source: src/loader/File.js (Line 335)