home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / mx / controls / videoClasses / VideoError.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  1.4 KB  |  50 lines

  1. package mx.controls.videoClasses
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.resources.IResourceManager;
  5.    import mx.resources.ResourceManager;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class VideoError extends Error
  10.    {
  11.       mx_internal static const VERSION:String = "3.5.0.12683";
  12.       
  13.       private static const BASE_ERROR_CODE:uint = 1000;
  14.       
  15.       public static const NO_CONNECTION:uint = 1000;
  16.       
  17.       public static const NO_CUE_POINT_MATCH:uint = 1001;
  18.       
  19.       public static const ILLEGAL_CUE_POINT:uint = 1002;
  20.       
  21.       public static const INVALID_SEEK:uint = 1003;
  22.       
  23.       public static const INVALID_CONTENT_PATH:uint = 1004;
  24.       
  25.       public static const INVALID_XML:uint = 1005;
  26.       
  27.       public static const NO_BITRATE_MATCH:uint = 1006;
  28.       
  29.       public static const DELETE_DEFAULT_PLAYER:uint = 1007;
  30.       
  31.       private var _code:uint;
  32.       
  33.       private var resourceManager:IResourceManager = ResourceManager.getInstance();
  34.       
  35.       public function VideoError(param1:uint, param2:String = null)
  36.       {
  37.          super();
  38.          _code = param1;
  39.          var _loc3_:Array = resourceManager.getStringArray("controls","errorMessages");
  40.          message = "" + param1 + ": " + _loc3_[param1 - BASE_ERROR_CODE] + (param2 == null ? "" : ": " + param2);
  41.       }
  42.       
  43.       public function get code() : uint
  44.       {
  45.          return _code;
  46.       }
  47.    }
  48. }
  49.  
  50.