 import flash.geom.Rectangle;
 import flash.printing.PrintJob;
 import flash.printing.PrintJobOptions;
-import mx.core.Application;
 import mx.core.IFlexDisplayObject;
 import mx.core.IUIComponent;
 import mx.core.UIComponent;


        var arrPrintData:Array = prepareToPrintObject(obj);

        if (obj is Application)
        {
            objWidth *= ratio;
            objHeight *= ratio;

            // The following loop is required only for scenario
            // where application may have a few children
            // with percent width or height.
            n = obj["numElements"];
            for (i = 0; i < n; i++)
            {
                child = IFlexDisplayObject(obj["getElementAt"](i));
                if (child is UIComponent && childPercentSizes[child.name])
                {
                    var childPercentSize:Object = childPercentSizes[child.name];
