public function JPGEncoder(quality:Number = 50) { if (quality <= 0) { quality = 1; } if (quality > 100) { quality = 100; } ...