bitmap.blt ?

why bitmap.blt is only working on some image please? i can't find the answer it work on certain image that are in system but only when they are loaded with ImageManager.loadSystem(); but it do not work on almost every bitmap.  test code (in new scene start)

Do not work :

    var b = Bitmap.load('img/titles1/book.png');    var bt = new Bitmap(800, 600);    bt.blt(b, 0, 0, 288, 384, 0, 0);    this.sprite = new Sprite(bt);    this.addChild(this.sprite);work :

Code:
    var b = ImageManager.loadSystem('Weapons3');    var bt = new Bitmap(800, 600);    bt.blt(b, 0, 0, 288, 384, 0, 0);    this.sprite = new Sprite(bt);    this.addChild(this.sprite);
why bitmap.blt is only working on some image please? i can't find the answer it work on certain image that are in system but only when they are loaded with ImageManager.loadSystem(); but it do not work on almost every bitmap.  test code (in new scene start)

Do not work :

Code:
    var b = Bitmap.load('img/titles1/book.png');    var bt = new Bitmap(800, 600);    bt.blt(b, 0, 0, 288, 384, 0, 0);    this.sprite = new Sprite(bt);    this.addChild(this.sprite);
The loading is asyncronical that means doing: 

Code:
Bitmap.load('img/titles1/book.png')

Doesn't automatically load the image, you have to do it when the image loads...

Code:
    var b = Bitmap.load('img/titles1/book.png');    var bt = new Bitmap(800, 600);    b.addLoadListener(function () {       bt.blt(b, 0, 0, 288, 384, 0, 0);    });    this.sprite = new Sprite(bt);    this.addChild(this.sprite); 
Oh thank you i see 🙂 , i understand but this is so weird compared to ruby/ace 🙂 everything seem to be harder to do ;_; lol thank again.

Original thread: https://forums.rpgmakerweb.com/threads/bitmap-blt.48408/