Phaser API Documentation

  Version: 
onLoad(xhr, event)

Description:

Called when the file finishes 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 load.

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