1. ActionScript / Говнокод #3268

    −87

    1. 1
    if(_smcWindowContent._smcShowOnStartup.contains(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn))_smcWindowContent._smcShowOnStartup.removeChild(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn);

    (c) Tom Wrasseller Flash Lead of Arkadium Games

    Запостил: dimas_art, 19 Мая 2010

    Комментарии (2) RSS

    • full version :)

      protected override function initContentWindowOnStopFrame():void {
      _bShowOnStartup = SharedObjectManager.getInstance().loadDa ta("bShowHelpOnStartup" )
      _smcWindowContent._smcShowOnStartup._sbt ShowHelpOn.addEventListener(MouseEvent.C LICK, toggleShowHelp);
      _smcWindowContent._smcShowOnStartup._sbt ShowHelpOn.addEventListener(MouseEvent.R OLL_OVER, onRollover);
      _smcWindowContent._smcShowOnStartup._sbt ShowHelpOff.addEventListener(MouseEvent. CLICK, toggleShowHelp);
      _smcWindowContent._smcShowOnStartup._sbt ShowHelpOff.addEventListener(MouseEvent. ROLL_OVER, onRollover);
      if(_smcWindowContent._smcShowOnStartup.c ontains(_smcWindowContent._smcShowOnStar tup._sbtShowHelpOn))_smcWindowContent._s mcShowOnStartup.removeChild(_smcWindowCo ntent._smcShowOnStartup._sbtShowHelpOn);
      if(_smcWindowContent._smcShowOnStartup.c ontains(_smcWindowContent._smcShowOnStar tup._sbtShowHelpOff))_smcWindowContent._ smcShowOnStartup.removeChild(_smcWindowC ontent._smcShowOnStartup._sbtShowHelpOff );
      if(_bShowOnStartup) _smcWindowContent._smcShowOnStartup.addC hild(_smcWindowContent._smcShowOnStartup ._sbtShowHelpOn);
      else _smcWindowContent._smcShowOnStartup.addC hild(_smcWindowContent._smcShowOnStartup ._sbtShowHelpOff);
      _smcWindowContent._smcSoundBtn.onInitial ize(0);
      _smcWindowContent._smcMusicBtn.onInitial ize(1);
      _smcWindowContent._sbtClose.addEventList ener(MouseEvent.CLICK, okButton);
      _smcWindowContent._sbtOk.addEventListene r(MouseEvent.CLICK, okButton);
      _smcWindowContent._sbtClose.addEventList ener(MouseEvent.ROLL_OVER, onRollover);
      _smcWindowContent._sbtOk.addEventListene r(MouseEvent.ROLL_OVER, onRollover);
      }
      Ответить
      • и этот человек запрещал мне ковыряться в носу!
        Ответить

    Добавить комментарий