     //--------------------------------------------------------------------------
 
     //----------------------------------
-	//  code
+    //  code
     //----------------------------------
 
     /**
-	 *  @private
-	 *  Storage for the code property.
+     *  @private
+     *  Storage for the code property.
      */      
-	private var _code:uint;
+    private var _code:uint;
 
-	/**
-	 *  Contains the error code.
-	 */
-	public function get code():uint 
-	{ 
-		return _code; 
-	}
+    /**
+     *  Contains the error code.
+     */
+    public function get code():uint 
+    { 
+        return _code; 
+    }
 }
 
 }

    //
    //--------------------------------------------------------------------------
    
	/**
	 *  @private
	 *  Base error code
	 */
	private static const BASE_ERROR_CODE:uint = 1000;

	/**
	 *  Unable to make connection to server or to find FLV on server.
	 */
	public static const NO_CONNECTION:uint = 1000;

	/**
	 *  No matching cue point found.
	 */
	public static const NO_CUE_POINT_MATCH:uint = 1001;

	/**
	 *  Illegal cue point.
	 */
	public static const ILLEGAL_CUE_POINT:uint = 1002;

	/**
	 *  Invalid seek.
	 */
	public static const INVALID_SEEK:uint = 1003;

	/**
	 *  Invalid content path.
	 */
	public static const INVALID_CONTENT_PATH:uint = 1004;

	/**
	 *  Invalid XML.
	 */
	public static const INVALID_XML:uint = 1005;

	/**
	 *  No bitrate match.
	 */
	public static const NO_BITRATE_MATCH:uint = 1006;

	/**
	 *  Cannot delete default VideoPlayer
	 */
	public static const DELETE_DEFAULT_PLAYER:uint = 1007;
	
    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

	/**
	 *  Constructor
	 *
	 *  @param The error code.
	 *
	 *  @param msg The error message.
	 */
	public function VideoError(errCode:uint, msg:String = null) 
	{
		super();

		_code = errCode;

		var errorMessages:Array = resourceManager.getStringArray(
			"controls", "errorMessages")
		
		message = "" + errCode + ": " +
				  errorMessages[errCode - BASE_ERROR_CODE] +
				  ((msg == null) ? "" : (": " + msg));
		
		//name = "VideoError";
	}
	
    //--------------------------------------------------------------------------
    //
    //  Variables
    //
    //--------------------------------------------------------------------------

	/**
	 *  @private
	 *  Used for accessing localized Error messages.
	 */
	private var resourceManager:IResourceManager =
									ResourceManager.getInstance();

    //--------------------------------------------------------------------------
    //

 */ 
public class VideoError extends Error 
{
    include "../../core/Version.as";
    
    //--------------------------------------------------------------------------
    //
