         updateDecFrames(0);
         updatePlaying(true);
 
-        var arr:Array = getChildren();
-        var loader:MJPGImage = null;
-        for each (loader in arr)
+        for each (var loader:MJPGImage in getChildren())
         {
           loader.data.inQue = true;
           idleQue.push(loader);

        loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onImageError);
        this.addChild(loader);
      }
    }

    public function getChildren():Array
    {
       var children:Array = [];

       for (var i:uint = 0; i < this.numChildren; i++)
        children.push(this.getChildAt(i));

       return children;
    }


      loader.height *= scale;

      // Center on stage
      loader.x = (stage.stageWidth - loader.width) / 2;
      loader.y = (stage.stageHeight - loader.height) / 2;
    }

    private function onLoadComplete(event:Event):void
    {
      if (!playing)
      {
        return;
      }

      var arr:Array = getChildren();
      var loader:MJPGImage = event.currentTarget.loader as MJPGImage;
      var bitmap:Bitmap = event.currentTarget.content;
      if (bitmap != null)
      {
        bitmap.smoothing = true;
      }
      loader.data.loading = false;

      scaleAndPosition(loader);

      var curTime:Number = new Date().getTime();
      decTime += curTime - loader.data.loadTime;
