1  /**
     2   * com.sekati.display.EventClip
     3   * @version 1.0.7
     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.CoreClip;
    10  import com.sekati.events.Broadcaster;
    11  
    12  /**
    13   * Event driven core Clip - recieves {@link com.sekati.events.Broadcaster} events.
    14   */
    15  class com.sekati.display.EventClip extends CoreClip {
    16  
    17  	/**
    18  	 * Constructor
    19  	 */
    20  	public function EventClip() {
    21  		super( );
    22  		Broadcaster.$.subscribe( _this );
    23  	}
    24  
    25  	/**
    26  	 * Simple broadcast wrapper.
    27  	 * @see {@link com.sekati.events.Broadcaster.broadcast()}
    28  	 * @return Void
    29  	 */
    30  	/* 
    31  	public function broadcast():Void {
    32  	Broadcaster.$.broadcast.apply(this, arguments);
    33  	}
    34  	 */
    35  	
    36  	/**
    37  	 * Remove from Event Dispatchers and Broadcasters onUnload.
    38  	 * @return Void
    39  	 */
    40  	public function onUnload():Void {
    41  		super.onUnload( );
    42  		Broadcaster.$.unsubscribe( _this );
    43  	}
    44  }