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