0

イメージ ローダー キャッシュ ( http://forum.starling-framework.org/topic/imageloader-with-cache-system ) クラスを使用してイメージをリモートで読み込み、キャッシュに保存していますが、PixelMaskDisplayObject を使用してマスクを適用する必要があります。画像に読み込み、読み込みが完了するまで待つ必要がありますが、oncomplete イベント リスナーを適用する方法が不明です。以下は発火しません。

ありがとう

// Load remote image into cache
this.profileImage = new ImageLoaderCache();
this.profileImage.source = "http://pathtoimage.com/profile.jpg";
this.profileImage.addEventListener(starling.events.Event.COMPLETE, onImageLoadComplete);
4

0 に答える 0