home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 127 / MOBICLIC127.ISO / mac / DATA / DSS127 / DSS127_03 / DSS127_03.swf / scripts / frame_420 / DoAction.as
Text File  |  2010-09-13  |  1KB  |  48 lines

  1. function initPhoto(hostClip, photo)
  2. {
  3.    trace(hostClip);
  4.    trace(photo);
  5.    var _loc2_ = new MovieClipLoader();
  6.    _loc2_.addListener(mclListener);
  7.    myID = "I_" + gModuleName + "_" + photo;
  8.    trace(myID);
  9.    _loc2_.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,hostClip);
  10. }
  11. stop();
  12. if(getPos(listTele,0) == -1)
  13. {
  14.    gotoAndStop("ATTENTE");
  15. }
  16. else
  17. {
  18.    var i = 1;
  19.    while(i <= 2)
  20.    {
  21.       this["ZONE_05_" + gimme2digits(i)].pZone = i;
  22.       this["ZONE_05_" + gimme2digits(i)].onRollOver = function()
  23.       {
  24.          gereCursor(2);
  25.          this.gotoAndStop("E2");
  26.          joueBruitage({nomSon:"B_TELESCOPE"});
  27.          gereTextes.afficheIB({mc:this,codeIB:"IB_05_" + gimme2digits(this.pZone),X:this._x,Y:this._y});
  28.       };
  29.       this["ZONE_05_" + gimme2digits(i)].onRollOut = function()
  30.       {
  31.          gereTextes.masqueIB();
  32.          gereCursor(1);
  33.          this.gotoAndStop("E1");
  34.          stopBruitage({nomSon:"B_TELESCOPE"});
  35.       };
  36.       this["ZONE_05_" + gimme2digits(i)].onPress = function()
  37.       {
  38.          listTele[this.pZone - 1] = 1;
  39.          gereTextes.masqueIB();
  40.          gereCursor(1);
  41.          this.gotoAndStop("E1");
  42.          stopBruitage({nomSon:"B_TELESCOPE"});
  43.          _root.gotoAndStop("05_" + gimme2digits(this.pZone));
  44.       };
  45.       i++;
  46.    }
  47. }
  48.