﻿package com.adobe.captivate.widgets
{
	/**
		* This class describes the properties of the slide containing the widget.
		
		* @see CPMovieHandle#getSlideProps
	*/
	public class CPSlideProperties
	{
		/**
     		* @private
     	*/
		public function CPSlideProperties(startFrameVal:Number=0,endFrameVal:Number=0,slideTypeVal:String="",slideHandleVal:CPSlideHandle=null)
		{
			this._startFrame = startFrameVal;
			this._endFrame = endFrameVal;
			this._slideType = slideTypeVal;
			this._slideHandle = slideHandleVal;
		}
		/**
     		* @private
     		*/
		private var _startFrame:Number;

		/**
     		* This function returns the frame number at which the slide begins. The indexing begins with zero.
			* @return A Number indicating the start frame number of the slide 
		*/
		public function get startFrame():Number
		{
			return _startFrame;
		}

		/**
     		* @private
     		*/
		private var _endFrame:Number;
		
		/**
     		* This function returns the frame number at which the slide ends. The indexing begins with zero.
			* @return A Number indicating the end frame number of the slide 
		*/
		public function get endFrame():Number
		{
			return _endFrame;
		}

		/**
     		* @private
     		*/
		private var _slideType:String;

		/**
     		* This function returns a String indicating the type of the slide the widget is present on.
			* The string has one of the following values : Normal Slide, Question Slide, or Random Question Slide. 
		*/
		public function get slideType():String
		{
			return _slideType;
		}

		/**
     		* @private
     		*/
		private var _slideHandle:CPSlideHandle;

		/**
     		* This function returns a Handle to the slide functions.
			* @return A CPSlideHanlde Object . 
			* @see CPSlideHandle
		*/
		
		public function get slideHandle():CPSlideHandle
		{
			return _slideHandle;
		}
	}
}
