home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 02_JobsNavy.swf / scripts / __Packages / mx / video / VideoError.as < prev    next >
Text File  |  2006-07-25  |  1KB  |  26 lines

  1. class mx.video.VideoError extends Error
  2. {
  3.    static var version = "1.0.0.103";
  4.    static var BASE_ERROR_CODE = 1000;
  5.    static var NO_CONNECTION = 1000;
  6.    static var NO_CUE_POINT_MATCH = 1001;
  7.    static var ILLEGAL_CUE_POINT = 1002;
  8.    static var INVALID_SEEK = 1003;
  9.    static var INVALID_CONTENT_PATH = 1004;
  10.    static var INVALID_XML = 1005;
  11.    static var NO_BITRATE_MATCH = 1006;
  12.    static var DELETE_DEFAULT_PLAYER = 1007;
  13.    static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server","No matching cue point found","Illegal cue point","Invalid seek","Invalid contentPath","Invalid xml","No bitrate match, must be no default flv","Cannot delete default VideoPlayer"];
  14.    function VideoError(errCode, msg)
  15.    {
  16.       super();
  17.       this._code = errCode;
  18.       this.message = "" + errCode + ": " + mx.video.VideoError.ERROR_MSG[errCode - mx.video.VideoError.BASE_ERROR_CODE] + (msg != undefined ? ": " + msg : "");
  19.       this.name = "VideoError";
  20.    }
  21.    function get code()
  22.    {
  23.       return this._code;
  24.    }
  25. }
  26.