lundi 13 juin 2016

Action Script 3 - contentLoaderInfo

Can someone explain to me what this code do? Does the code check if the swf file has been modified by verifying the size of the file or ?

  public function onLoaded(param1:Event) : *
  {
     var _loc2_:Array = [208,48,101,0,96,5,48,96,101,48];
     var _loc3_:Boolean = true;
     var _loc4_:int = 0;
     while(_loc4_ < 10)
     {
        if(external.contentLoaderInfo.bytes[458000 + _loc4_] != _loc2_[_loc4_])
        {
           _loc3_ = false;
           break;
        }
        _loc4_++;
     }
     loadStep = 2;
     if(_loc3_)
     {
        this.dispatchEvent(new Event("onReady"));
     }
  }

} }

Aucun commentaire:

Enregistrer un commentaire