- 1
if(_smcWindowContent._smcShowOnStartup.contains(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn))_smcWindowContent._smcShowOnStartup.removeChild(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn);
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−87
if(_smcWindowContent._smcShowOnStartup.contains(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn))_smcWindowContent._smcShowOnStartup.removeChild(_smcWindowContent._smcShowOnStartup._sbtShowHelpOn);
(c) Tom Wrasseller Flash Lead of Arkadium Games
dimas_art 19.05.2010 12:44 # +2
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);
}
guest 19.05.2010 12:47 # +5