src/virtual-machine.js
/**
     * Add a backdrop to the stage.
     * @param {string} md5ext - the MD5 and extension of the backdrop to be loaded.
     * @param {!object} backdropObject Object representing the backdrop.
     * @property {int} skinId - the ID of the backdrop's render skin, once installed.
     * @property {number} rotationCenterX - the X component of the backdrop's origin.
     * @property {number} rotationCenterY - the Y component of the backdrop's origin.
     * @property {number} [bitmapResolution] - the resolution scale for a bitmap backdrop.
     * @returns {?Promise} - a promise that resolves when the backdrop has been added
     */
Add a backdrop to the stage.
@param {string} md5ext - the MD5 and extension of the backdrop to be loaded.
@param {!object} backdropObject Object representing the backdrop.
@property {int} skinId - the ID of the backdrop's render skin, once installed.
@property {number} rotationCenterX - the X component of the backdrop's origin.
@property {number} rotationCenterY - the Y component of the backdrop's origin.
@property {number} [bitmapResolution] - the resolution scale for a bitmap backdrop.
@returns {?Promise} - a promise that resolves when the backdrop has been added
Add a backdrop to the stage . @param { string } md5ext - the MD5 and extension of the backdrop to be loaded . @param { !object } backdropObject Object representing the backdrop . @property { int } skinId - the ID of the backdrop ' s render skin once installed . @property { number } rotationCenterX - the X component of the backdrop ' s origin . @property { number } rotationCenterY - the Y component of the backdrop ' s origin . @property { number } [ bitmapResolution ] - the resolution scale for a bitmap backdrop . @returns { ?Promise } - a promise that resolves when the backdrop has been added
addBackdrop (md5ext, backdropObject) {
        return loadCostume(md5ext, backdropObject, this.runtime).then(() => {
            const stage = this.runtime.getTargetForStage();
            stage.addCostume(backdropObject);
            stage.setCostume(stage.getCostumes().length - 1);
        });
    }
addBackdrop ( md5ext , backdropObject ) { return loadCostume ( md5ext , backdropObject , this . runtime ) . then ( ( ) => { const stage = this . runtime . getTargetForStage ( ) ; stage . addCostume ( backdropObject ) ; stage . setCostume ( stage . getCostumes ( ) . length - 1 ) ; } ) ; }
Add a backdrop to the stage.
Add a backdrop to the stage .