﻿// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package com.adobe.captivate.events 
{
	import flash.events.Event;

	/**
	 * The CaptivateEvent class defines the base class for all events that will be fired by a captivate movie. 
     *
     *
     * @langversion 3.0
	 */
	public class CaptivateEvent extends Event 
	{
		/** 
		* @private
		*/
		protected var m_CaptivateVersion:String;

		/** 
		* @private
		*/
		protected static const m_CaptivateEventsVersion:String = "1.0.0"; 

		/** 
		* @private
		*/
		public function CaptivateEvent(type:String,captivateVersion:String,cancelable:Boolean = false,bubbles = true) 
		{
			super(type, bubbles, cancelable);
			m_CaptivateVersion = captivateVersion;
		}
		/** 
		* @private
		*/
		public override function clone():Event
		{
			return new CaptivateEvent(type,captivateVersion,cancelable);
		}
		/** 
		* This function returns the captivate version that published the swf 
		* @return A string describing the captivate version that published the swf
		*/
		public function get captivateVersion():String
		{
			return m_CaptivateVersion;
		}
	}
}
