public function loadBytes(bytes:ByteArray,lc:LoaderContext = null):void{ loader = new Loader; loader.loadBytes(bytes,lc); addEvent(); } //開始偵聽 private function addEvent():void{ loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressFun); loader.contentLoaderInfo.addEventListener(E...
public AsyncImageLoader(Activity context){ this.context = context; imageCache = new HashMap<String, SoftReference<Bitmap>>(); } public Bitmap loadImage(final ImageView imageView,final String imageURL,final ImageCallBack imageCallBack){ //If the cache contains the reference of bitmap then return...