
Loader.loadBytes(...) don't fired complete Event?
I save a bytearray from a image in mySQL-Database, and when i write a file with this information
the Bitmap i can open on my OS, and i can load to flash. But this don't work, when i load
this Data via amfphp to flash as ByteArray. I have found samples with Loader, there
says i can do the follow
Code:
public function returnFromAmfphp(bts:ByteArray):void
{
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
ldr.loadBytes(bts);
}
public function onLoad(evt:Event):void
{
trace("onLoad");
}
I never become the Trace->onLoad.
But when i open the returnFromAmfphp directly with the BytesArray from the image, they work. But
I don't know why the don't fired the complete event? Anybody can help me?