Expand my Community achievements bar.

Get image through proxy service

Avatar

Former Community Member
In my application I was using the Loader class to load an
image. That works, but now I want to use the proxy service to load
the image.



I don't see how I can use the loader in combination with the
proxy service. So I tried to use the HTTPService:



myImage.data = Bitmap(myService.lastResult);

<mx:HTTPService id="myService" url="
http://.../servlet"
resultFormat="object" result="resultReceived()"
useProxy="true"/>



That generates an error: type coercion failed: cannot convert
"?PNG .." to flash.display.Bitmap.

Is there a way to use the proxy service to get an image?



0 Replies