 package org.apache.flex.effects
 {
 
-import flash.display.DisplayObject;
-import flash.geom.Rectangle;
+COMPILE::AS3
+{
+    import flash.display.DisplayObject;
+    import flash.geom.Rectangle;            
+}
+COMPILE::JS
+{
+    import org.apache.flex.geom.Rectangle;
+}
 
 import org.apache.flex.core.IDocument;
 import org.apache.flex.core.IUIBase;

     */
    public function set visibleRect(value:Rectangle):void
    {
        DisplayObject(_target).scrollRect = value;
    }
}


	private var _target:IUIBase;
      
    /**
     *  @private
     *  The old overflow value.
     */
    private var _overflow:String;
    
    /**
     *  The object that will be clipped.
     *
     *  @langversion 3.0
