 
 import flash.display.Bitmap;
 import flash.display.BitmapData;
+import flash.display.Shape;
 import flash.display.SimpleButton;
 import flash.display.Sprite;
 

        var window :Window = getWindow(id);
        if (window != null) {
            addDirtyRegion(new Rectangle(window.bounds.x + bounds.x, window.bounds.y + bounds.y,
                bounds.width, bounds.height));
            window.setContents(bounds, contents);
        }
    }

import flash.events.MouseEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.events.TimerEvent;

import flash.external.ExternalInterface;

