home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 161 / MOBICLIC161.ISO / pc / DATA / DSS161 / DSS161_00 / DSS161_00.swf / scripts / dss161_00 / ATTENTE_01.as < prev    next >
Text File  |  2014-01-15  |  2KB  |  70 lines

  1. package dss161_00
  2. {
  3.    import dss161.engineaddons.gamesprotos.Actor;
  4.    import dss161.engineaddons.gamesprotos.actors.actorClip.ActorClip;
  5.    
  6.    public class ATTENTE_01 extends Actor
  7.    {
  8.        
  9.       
  10.       public var container:ActorClip;
  11.       
  12.       public var onEvent:Function;
  13.       
  14.       private var actorClip:ActorClip;
  15.       
  16.       private var appareilPhoto:AppareilPhoto;
  17.       
  18.       public function ATTENTE_01(param1:*)
  19.       {
  20.          var params:* = param1;
  21.          super();
  22.          this.container = params.container;
  23.          this.onEvent = params.onEvent;
  24.          if(this.container.currentLabel == "ATTENTE_01")
  25.          {
  26.             addActor({
  27.                "type":AppareilPhoto,
  28.                "visualMC":this.container.getChildByName("APPAREIL_PHOTO"),
  29.                "onEvent":this.onEvent
  30.             });
  31.          }
  32.          var btZap:ActorClip = addActor({
  33.             "mc":this.container.getChildByName("BT_ZAP"),
  34.             "onRollOverState":{
  35.                "label":"E2",
  36.                "noiseCode":"B_ZAP",
  37.                "ibId":"IB_ZAP"
  38.             },
  39.             "onRollOutState":{"label":"E1"},
  40.             "onClick":function(param1:ActorClip):void
  41.             {
  42.                _destroy();
  43.                onEvent("zap");
  44.             },
  45.             "enabled":true,
  46.             "visible":false
  47.          });
  48.          var btHelp:ActorClip = addActor({
  49.             "mc":this.container.getChildByName("BT_HELP"),
  50.             "onRollOverState":{
  51.                "label":"E2",
  52.                "noiseCode":"B_HELP",
  53.                "ibId":"IB_HELP"
  54.             },
  55.             "onRollOutState":{"label":"E1"},
  56.             "onClick":function(param1:ActorClip):void
  57.             {
  58.                game.commentPlay({"code":"JEU_01_HELP"});
  59.             },
  60.             "enabled":true,
  61.             "visible":false
  62.          });
  63.       }
  64.       
  65.       public function reset() : void
  66.       {
  67.       }
  68.    }
  69. }
  70.