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

  1. package com.facebook.data.stream
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.EventDispatcher;
  5.    import flash.events.IEventDispatcher;
  6.    import mx.events.PropertyChangeEvent;
  7.    
  8.    public class StreamMediaData implements IEventDispatcher
  9.    {
  10.       private var _104263205music:MusicMedia;
  11.       
  12.       private var _3575610type:String;
  13.       
  14.       private var _bindingEventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this));
  15.       
  16.       private var _96681alt:String;
  17.       
  18.       private var _3211051href:String;
  19.       
  20.       private var _106642994photo:PhotoMedia;
  21.       
  22.       private var _114148src:String;
  23.       
  24.       private var _112202875video:VideoMedia;
  25.       
  26.       private var _97513456flash:FlashMedia;
  27.       
  28.       public function StreamMediaData()
  29.       {
  30.          super();
  31.       }
  32.       
  33.       public function dispatchEvent(param1:Event) : Boolean
  34.       {
  35.          return this._bindingEventDispatcher.dispatchEvent(param1);
  36.       }
  37.       
  38.       [Bindable(event="propertyChange")]
  39.       public function get video() : VideoMedia
  40.       {
  41.          return this._112202875video;
  42.       }
  43.       
  44.       public function hasEventListener(param1:String) : Boolean
  45.       {
  46.          return this._bindingEventDispatcher.hasEventListener(param1);
  47.       }
  48.       
  49.       public function toString() : String
  50.       {
  51.          return ["type: " + this.type,"href: " + this.href,"src: " + this.src,"alt: " + this.alt,"photo: " + this.photo,"video: " + this.video,"flash: " + this.flash].join(": ");
  52.       }
  53.       
  54.       public function set photo(param1:PhotoMedia) : void
  55.       {
  56.          var _loc2_:Object = this._106642994photo;
  57.          if(_loc2_ !== param1)
  58.          {
  59.             this._106642994photo = param1;
  60.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"photo",_loc2_,param1));
  61.          }
  62.       }
  63.       
  64.       public function set music(param1:MusicMedia) : void
  65.       {
  66.          var _loc2_:Object = this._104263205music;
  67.          if(_loc2_ !== param1)
  68.          {
  69.             this._104263205music = param1;
  70.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"music",_loc2_,param1));
  71.          }
  72.       }
  73.       
  74.       public function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
  75.       {
  76.          this._bindingEventDispatcher.addEventListener(param1,param2,param3,param4,param5);
  77.       }
  78.       
  79.       public function set src(param1:String) : void
  80.       {
  81.          var _loc2_:Object = this._114148src;
  82.          if(_loc2_ !== param1)
  83.          {
  84.             this._114148src = param1;
  85.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"src",_loc2_,param1));
  86.          }
  87.       }
  88.       
  89.       public function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
  90.       {
  91.          this._bindingEventDispatcher.removeEventListener(param1,param2,param3);
  92.       }
  93.       
  94.       public function set alt(param1:String) : void
  95.       {
  96.          var _loc2_:Object = this._96681alt;
  97.          if(_loc2_ !== param1)
  98.          {
  99.             this._96681alt = param1;
  100.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"alt",_loc2_,param1));
  101.          }
  102.       }
  103.       
  104.       public function willTrigger(param1:String) : Boolean
  105.       {
  106.          return this._bindingEventDispatcher.willTrigger(param1);
  107.       }
  108.       
  109.       public function set href(param1:String) : void
  110.       {
  111.          var _loc2_:Object = this._3211051href;
  112.          if(_loc2_ !== param1)
  113.          {
  114.             this._3211051href = param1;
  115.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"href",_loc2_,param1));
  116.          }
  117.       }
  118.       
  119.       [Bindable(event="propertyChange")]
  120.       public function get music() : MusicMedia
  121.       {
  122.          return this._104263205music;
  123.       }
  124.       
  125.       public function set flash(param1:FlashMedia) : void
  126.       {
  127.          var _loc2_:Object = this._97513456flash;
  128.          if(_loc2_ !== param1)
  129.          {
  130.             this._97513456flash = param1;
  131.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"flash",_loc2_,param1));
  132.          }
  133.       }
  134.       
  135.       [Bindable(event="propertyChange")]
  136.       public function get alt() : String
  137.       {
  138.          return this._96681alt;
  139.       }
  140.       
  141.       [Bindable(event="propertyChange")]
  142.       public function get href() : String
  143.       {
  144.          return this._3211051href;
  145.       }
  146.       
  147.       [Bindable(event="propertyChange")]
  148.       public function get flash() : FlashMedia
  149.       {
  150.          return this._97513456flash;
  151.       }
  152.       
  153.       public function set type(param1:String) : void
  154.       {
  155.          var _loc2_:Object = this._3575610type;
  156.          if(_loc2_ !== param1)
  157.          {
  158.             this._3575610type = param1;
  159.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"type",_loc2_,param1));
  160.          }
  161.       }
  162.       
  163.       public function set video(param1:VideoMedia) : void
  164.       {
  165.          var _loc2_:Object = this._112202875video;
  166.          if(_loc2_ !== param1)
  167.          {
  168.             this._112202875video = param1;
  169.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"video",_loc2_,param1));
  170.          }
  171.       }
  172.       
  173.       [Bindable(event="propertyChange")]
  174.       public function get photo() : PhotoMedia
  175.       {
  176.          return this._106642994photo;
  177.       }
  178.       
  179.       [Bindable(event="propertyChange")]
  180.       public function get type() : String
  181.       {
  182.          return this._3575610type;
  183.       }
  184.       
  185.       [Bindable(event="propertyChange")]
  186.       public function get src() : String
  187.       {
  188.          return this._114148src;
  189.       }
  190.    }
  191. }
  192.  
  193.