开发者

Loader content always null

开发者 https://www.devze.com 2022-12-20 11:20 出处:网络
I load successfully an external image using a Loader class but every time i trace the loader.content property is found null. Why?

I load successfully an external image using a Loader class but every time i trace the loader.content property is found null. Why?

ps: Actually, i'm trying to get the bitmapdata from 开发者_运维知识库a loader object.


  1. Make sure you didn't accidentally attach the listener to the loader itself as opposed to loader's contentLoaderInfo property
  2. You should be able to access it as Bitmap(loader.content).bitmapData in the Event.COMPLETE handler.
0

精彩评论

暂无评论...
验证码 换一张
取 消