﻿package com.adobe.captivate.widgets
{
	/**
		* This class describes the hande to the slide functions.
		
		* @see CPSlideProperties#slideHandle
	*/
	public class CPSlideHandle
	{
		/**
     		* @private
     	*/
		private var _addNoSkipFrame:Function;
		/**
     		* @private
     	*/
		public function CPSlideHandle(aAddNoSkipFrame:Function = null)
		{
			_addNoSkipFrame = aAddNoSkipFrame;
		}

		/**
			* This function does not skip the frame passed in as a parameter at runtime
			* The Adobe Captivate SWF uses a functionality called “pacemaker” at runtime. 
			* When there are insufficient system resources, the pacemaker skips frames in a way that the user does not notice any glitch in the movie. 
			* However, it is possible that a frame containing actions might get skipped in the process. 
			* AddNoSkipFrame is used to ensure that pacemaker does not skip the specified frame.
			*
			* @param frameNum refers to the frame number with respect to the slide indexed from 1.
		*/
		public function AddNoSkipFrame(frameNum:Number) :void
		{
			if(_addNoSkipFrame!=null)
			{
				_addNoSkipFrame(frameNum);
			}
		}
	}
}

