home *** CD-ROM | disk | FTP | other *** search
- package mx.controls.videoClasses
- {
- import mx.core.mx_internal;
- import mx.resources.IResourceManager;
- import mx.resources.ResourceManager;
-
- use namespace mx_internal;
-
- public class VideoError extends Error
- {
- mx_internal static const VERSION:String = "3.5.0.12683";
-
- private static const BASE_ERROR_CODE:uint = 1000;
-
- public static const NO_CONNECTION:uint = 1000;
-
- public static const NO_CUE_POINT_MATCH:uint = 1001;
-
- public static const ILLEGAL_CUE_POINT:uint = 1002;
-
- public static const INVALID_SEEK:uint = 1003;
-
- public static const INVALID_CONTENT_PATH:uint = 1004;
-
- public static const INVALID_XML:uint = 1005;
-
- public static const NO_BITRATE_MATCH:uint = 1006;
-
- public static const DELETE_DEFAULT_PLAYER:uint = 1007;
-
- private var _code:uint;
-
- private var resourceManager:IResourceManager = ResourceManager.getInstance();
-
- public function VideoError(param1:uint, param2:String = null)
- {
- super();
- _code = param1;
- var _loc3_:Array = resourceManager.getStringArray("controls","errorMessages");
- message = "" + param1 + ": " + _loc3_[param1 - BASE_ERROR_CODE] + (param2 == null ? "" : ": " + param2);
- }
-
- public function get code() : uint
- {
- return _code;
- }
- }
- }
-
-