1  /**
     2   * com.sekati.display.CoreClip
     3   * @version 1.1.1
     4   * @author jason m horwitz | sekati.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.BaseClip;
    10  import com.sekati.display.IBaseClip;
    11  import com.sekati.display.ICoreClip;
    12  import com.sekati.display.ITweenClip;
    13  
    14  /**
    15   * Core UI mixin that all interface subclasses should extend 
    16   * instead of MovieClip for standardized UI initialization.<br><br>
    17   * 
    18   * Note: CoreClip should only be used for classes which will
    19   * extend library clips via linkage id. If you are using 
    20   * {@link com.sekati.utils.ClassUtils} to extend a class use
    21   * {@link com.sekati.display.BaseClip} as the onLoad event
    22   * will have fired before the clip is extended.
    23   * 
    24   * @see {@link com.sekati.display.AbstractClip}
    25   */
    26  class com.sekati.display.CoreClip extends BaseClip implements ICoreClip, IBaseClip, ITweenClip {
    27  
    28  	/**
    29  	 * Private Constructor; class is initialized via the MovieClip.onLoad event.
    30  	 */
    31  	private function CoreClip() {
    32  		super( );
    33  	}
    34  
    35  	/**
    36  	 * onLoad does core setup when clip registers on stage via onLoad. 
    37  	 * Do not override this in subclasses; instead override configUI.
    38  	 * @return Void
    39  	 */
    40  	public function onLoad():Void {
    41  		configUI( );
    42  	}
    43  
    44  	/**
    45  	 * Configure UI and initialize behavior; should be overwritten by subclasses.
    46  	 */
    47  	public function configUI():Void {
    48  	}
    49  }