<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  Fork unstable media GmbH
//  Copyright 2006-2008 Fork unstable media GmbH
//  All Rights Reserved.
//
//  NOTICE: Fork unstable media permits you to use, modify, and distribute this
//  file in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package reprise.events 
{
	import flash.events.Event;
	
	/**
	 * @author till
	 */
	public class TransitionEvent extends Event 
	{
		/***************************************************************************
		*							public properties							   *
		***************************************************************************/
		public static const TRANSITION_START : String = 'transitionStart';
		public static const TRANSITION_COMPLETE : String = 'transitionComplete';
		public static const ALL_TRANSITIONS_COMPLETE : String = 'allTransitionComplete';
		public static const TRANSITION_CANCEL : String = 'transitionCancel';
		
		/**
		 * Returns the name of the property whose transition has ended.
		 * 
		 * Note that this property is not defined for events of type 
		 * ALL_TRANSITIONS_COMPLETE
		 */
		public function get propertyName() : String
		{
			return m_propertyName;
		}
		/**
		 * Returns the elapsed amount of time, in seconds.
		 * 
		 * Note that this property is not defined for events of type 
		 * ALL_TRANSITIONS_COMPLETE
		 */
		public function get elapsedTime() : Number
		{
			return m_elapsedTime;
		}
		public function set propertyName(name : String) : void
		{
			m_propertyName = name;
		}
		public function set elapsedTime(time : Number) : void
		{
			m_elapsedTime = time;
		}

		
		/***************************************************************************
		*							protected properties							   *
		***************************************************************************/
		protected var m_propertyName : String;
		protected var m_elapsedTime : Number;

		
		/***************************************************************************
		*							public methods								   *
		***************************************************************************/
		public function TransitionEvent(type : String)
		{
			super(type, true, false);
		}
		
		public override function toString() : String
		{
			var str : String = 'TransitionEvent.' + type;
			if (type == TRANSITION_START || 
				type == TRANSITION_COMPLETE || type == TRANSITION_CANCEL)<commit_msg>- change: TransitionEvents now don't bubble by default. Letting them do so made dealing with transitions events far more burdensome than necessary.<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  Fork unstable media GmbH
//  Copyright 2006-2008 Fork unstable media GmbH
//  All Rights Reserved.
//
//  NOTICE: Fork unstable media permits you to use, modify, and distribute this
//  file in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package reprise.events 
{
	import flash.events.Event;
	
	/**
	 * @author till
	 */
	public class TransitionEvent extends Event 
	{
		/***************************************************************************
		*							public properties							   *
		***************************************************************************/
		public static const TRANSITION_START : String = 'transitionStart';
		public static const TRANSITION_COMPLETE : String = 'transitionComplete';
		public static const ALL_TRANSITIONS_COMPLETE : String = 'allTransitionComplete';
		public static const TRANSITION_CANCEL : String = 'transitionCancel';
		
		/**
		 * Returns the name of the property whose transition has ended.
		 * 
		 * Note that this property is not defined for events of type 
		 * ALL_TRANSITIONS_COMPLETE
		 */
		public function get propertyName() : String
		{
			return m_propertyName;
		}
		/**
		 * Returns the elapsed amount of time, in seconds.
		 * 
		 * Note that this property is not defined for events of type 
		 * ALL_TRANSITIONS_COMPLETE
		 */
		public function get elapsedTime() : Number
		{
			return m_elapsedTime;
		}
		public function set propertyName(name : String) : void
		{
			m_propertyName = name;
		}
		public function set elapsedTime(time : Number) : void
		{
			m_elapsedTime = time;
		}

		
		/***************************************************************************
		*							protected properties							   *
		***************************************************************************/
		protected var m_propertyName : String;
		protected var m_elapsedTime : Number;

		
		/***************************************************************************
		*							public methods								   *
		***************************************************************************/
		public function TransitionEvent(type : String, bubbles : Boolean = false)
		{
			super(type, bubbles);
		}
		
		public override function toString() : String
		{
			var str : String = 'TransitionEvent.' + type;
			if (type == TRANSITION_START || 
				type == TRANSITION_COMPLETE || type == TRANSITION_CANCEL)
{'fraction_non_alphanumeric': 0.2936462507155123, 'fraction_numerical': 0.0030528525090631558, 'mean_word_length': 2.8743532889874355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6799666', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1177, 'n_words': 388}