Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 椋鸟图像装载机已完成_Actionscript 3_Air_Starling Framework - Fatal编程技术网

Actionscript 3 椋鸟图像装载机已完成

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

我正在使用image loader cache()类远程加载图像并将其保存在缓存中,但是我需要使用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);

您谈论的是
starling.events.Event.COMPLETE
that
ImageLoaderCache
dispatching?请添加'starling framework'标记正确,但在我的this.profileImage=new ImageLoaderCache()上添加事件侦听器;结果没有被解雇。显示你如何连接一个监听器似乎是好的。是否尝试交换行,首先附加侦听器,然后分配源?