home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / com / facebook / data / FacebookErrorCodes.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  2.2 KB  |  71 lines

  1. package com.facebook.data
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.EventDispatcher;
  5.    import flash.events.IEventDispatcher;
  6.    
  7.    public class FacebookErrorCodes implements IEventDispatcher
  8.    {
  9.       public static const SERVER_ERROR:Number = -1;
  10.       
  11.       public static const API_EC_SUCCESS:Number = 0;
  12.       
  13.       public static const API_EC_UNKNOWN:Number = 1;
  14.       
  15.       public static const API_EC_SERVICE:Number = 2;
  16.       
  17.       public static const API_EC_METHOD:Number = 3;
  18.       
  19.       public static const API_EC_TOO_MANY_CALLS:Number = 4;
  20.       
  21.       public static const API_EC_BAD_IP:Number = 5;
  22.       
  23.       public static const API_EC_HOST_API:Number = 6;
  24.       
  25.       public static const API_EC_HOST_UP:Number = 7;
  26.       
  27.       public static const API_EC_SECURE:Number = 8;
  28.       
  29.       public static const API_EC_RATE:Number = 9;
  30.       
  31.       public static const API_EC_PERMISSION_DENIED:Number = 10;
  32.       
  33.       public static const API_EC_DEPRECATED:Number = 11;
  34.       
  35.       public static const API_EC_VERSION:Number = 12;
  36.       
  37.       private var _bindingEventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this));
  38.       
  39.       public function FacebookErrorCodes()
  40.       {
  41.          super();
  42.       }
  43.       
  44.       public function dispatchEvent(param1:Event) : Boolean
  45.       {
  46.          return this._bindingEventDispatcher.dispatchEvent(param1);
  47.       }
  48.       
  49.       public function willTrigger(param1:String) : Boolean
  50.       {
  51.          return this._bindingEventDispatcher.willTrigger(param1);
  52.       }
  53.       
  54.       public function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
  55.       {
  56.          this._bindingEventDispatcher.addEventListener(param1,param2,param3,param4,param5);
  57.       }
  58.       
  59.       public function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
  60.       {
  61.          this._bindingEventDispatcher.removeEventListener(param1,param2,param3);
  62.       }
  63.       
  64.       public function hasEventListener(param1:String) : Boolean
  65.       {
  66.          return this._bindingEventDispatcher.hasEventListener(param1);
  67.       }
  68.    }
  69. }
  70.  
  71.