0 Replies Latest reply on Sep 5, 2006 3:24 PM by kopir

    is the loader limited?

    kopir
      Hi,
      I have a question about the loader:

      I load a jpeg file (which is in a byteArray)

      var pictldr:Loader = new Loader();
      pictldr.loadBytes(seekByt); //seekByt is the byteArray of my jpeg file
      pictldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loadImageComplete);

      So when my jpeg is loaded loadImageCompleted is launched:
      private function loadImageComplete(event:Event):void
      {
      var loader:Loader = Loader(event.target.loader);
      var myBitmap:BitmapData = Bitmap(loader.content).bitmapData;
      }

      This method works perfectly.

      -----------------------------

      But if I have a huge byteArray (for example a jpeg with this size:10000x5000), myBitmap seems to be empty although good informations in the loader.content!!

      ps: 6000x3000 pixels works.
      So what is the limitation if there is one? and how can I know that It has not loaded the picture?

      thank you for any information!