1  /**
     2   * com.sekati.display.LiquidYClip
     3   * @version 1.0.5
     4   * @author jason m horwitz | sekati.com | tendercreative.com
     5   * Copyright (C) 2007  jason m horwitz, Sekat LLC. All Rights Reserved.
     6   * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
     7   */
     8  
     9  import com.sekati.display.LiquidClip;
    10  import com.sekati.math.MathBase;
    11  
    12  /**
    13   * LiquidYClip - maintain a bottom-aligned clip positioning.
    14   */
    15  class com.sekati.display.LiquidYClip extends LiquidClip {
    16  
    17  	private var _liquid:MovieClip;
    18  	private var _yoffset:Number;
    19  	private var _ymin:Number;
    20  
    21  	/**
    22  	 * Constructor
    23  	 */
    24  	public function LiquidYClip() {
    25  		super( );
    26  		_yoffset = 0;
    27  		_ymin = 0;
    28  	}
    29  
    30  	/**
    31  	 * Position ({@code _liquid = this; // default can be overriden by subclass}) right taking into account {@code _yoffset, _ymin}.
    32  	 */
    33  	private function _onResize():Void {
    34  		_liquid._y = MathBase.constrain( int( Stage.height - _liquid._height - _yoffset ), _ymin - _liquid._height, Stage.height );
    35  	}	
    36  }