Actionscript 3 椋鸟图像装载机已完成
我正在使用image loader cache()类远程加载图像并将其保存在缓存中,但是我需要使用PixelMaskDisplayObject将掩码应用于图像,并需要等待它完成加载,但是不确定如何应用oncomplete事件侦听器。下面的灯不亮 谢谢Actionscript 3 椋鸟图像装载机已完成,actionscript-3,air,starling-framework,Actionscript 3,Air,Starling Framework,我正在使用image loader cache()类远程加载图像并将其保存在缓存中,但是我需要使用PixelMaskDisplayObject将掩码应用于图像,并需要等待它完成加载,但是不确定如何应用oncomplete事件侦听器。下面的灯不亮 谢谢 // Load remote image into cache this.profileImage = new ImageLoaderCache(); this.profileImage.source = "http://pathtoimage.c
// 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);
您谈论的是
starling.events.Event.COMPLETE
thatImageLoaderCache
dispatching?请添加'starling framework'标记正确,但在我的this.profileImage=new ImageLoaderCache()上添加事件侦听器;结果没有被解雇。显示你如何连接一个监听器似乎是好的。是否尝试交换行,首先附加侦听器,然后分配源?