View unanswered posts | View active topics


Reply to topic  [ 4 posts ] 
Loader.loadBytes(...) don't fired complete Event? 
Author Message
Member

Joined: Fri May 18, 2007 8:31 am
Posts: 63
Location: Biembach, Switzerland
Post 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?


Tue Nov 17, 2009 6:15 am
Profile
Member

Joined: Fri May 18, 2007 8:31 am
Posts: 63
Location: Biembach, Switzerland
Post Re: Loader.loadBytes(...) don't fired complete Event?
I have found the Solution:
The Var ldr:Loader i must set in the class header not in the function itself. Then is work it well :)


Wed Nov 18, 2009 6:41 am
Profile
Member

Joined: Wed Aug 01, 2007 3:37 pm
Posts: 1220
Location: Grizzly Flats, CA
Post Re: Loader.loadBytes(...) don't fired complete Event?
That makes sense! It's tricky how some bugs can elude you. It's like a puzzle with the answer staring right at you :)


Wed Nov 18, 2009 3:52 pm
Profile WWW
Member

Joined: Thu Sep 16, 2010 3:29 pm
Posts: 1
Post Re: Loader.loadBytes(...) don't fired complete Event?
I've set it in the class header and it's not working for me.

This is the right spot when you need to buy backlinks via the internet. Definitely I was able to get the fat burning furnace or the eat stop eat and absolutely have lost weight. Moreover attemptedto watch that it of satellite direct the other day.


Thu Sep 16, 2010 3:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.