 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 target(value:IUIBase):void
    {
        if (value == null)
            DisplayObject(_target).scrollRect = null;
        _target = value;
    }
    
    /**

     */
    public function set visibleRect(value:Rectangle):void
    {
        COMPILE::AS3
        {
            DisplayObject(_target).scrollRect = value;                
        }
        COMPILE::JS
        {
            _target.positioner.style.height = value.height.toString() + 'px';
            _target.positioner.style.overflow = 'hidden';
        }
    }
}

