The BitmapFileMaterial class dispatches a PROGRESS event while
progressing,
so you can add an eventlistener like this:

addEventListener(ProgressEvent.PROGRESS,onProgress)

private function onProgress(e:ProgressEvent):void
{
   //you can get the bytesloaded and bytestotal out of the info
   var bytesloaded:Number = event.bytesLoaded
   var bytestotal:Number = event.bytesTotal
}

On May 9, 8:36 pm, Mad Dog <[email protected]> wrote:
> I am loading an images for a spherical panorama and was wondering if
> there is a method to track progress. I tried loading images with
> urlloader then placing image in a sprite and casting that as
> MovieMaterial. However nothing shows up when I do this. Felt kind of
> stupid after that.
>
> Below loads the image but how can I track progress with this, or is
> there a better method?
>
> bitmapMaterial = new BitmapFileMaterial("Panorama.jpg");
> bitmapMaterial.smooth = true;
>
> var pano:Sphere = new Sphere({material:bitmapMaterial, radius:2000, x:
> 0, y:0, segmentsH:20, segmentsW:20});
> view.scene.addChild(pano);
> pano.scaleX = -1;
>
> Thanks in any advance for any Ideas!!!

Reply via email to