if (child is Bitmap) { (child as Bitmap).smoothing = true; } if (child is DisplayObjectContainer) { smoothAll(child); }