Код: Выделить всё
if (this.profile.bonus > 0) { this.profile.zlat = int(this.profile.zlat) + int(this.profile.bonus); this.msgBox("Вы получили бонус за установку статуса - " + this.Pad.getString(this.ZLATNIK, this.profile.bonus)); } if (this.profile.is_vk) { this.chat_mc.no_input.visible = false; this.chat_mc.inp_txt.visible = true; } else { this.chat_mc.no_input.visible = true; this.chat_mc.inp_txt.visible = false; } this.init(); this.initLK(); if (int(viewer_profile.rate) >= 200) { this.main_menu_mc.status_btn.addEventListener(MouseEvent.CLICK, function (param1) { status_mc.visible = true; return; }// end function ); this.status_mc.stat_setup.addEventListener(MouseEvent.CLICK, function (param1) { var e:* = param1; dp.request("activity.set", {params:{text:"Я повышаю рейтинг в приложении http://www.vkontakte.ru/app" + par.api_id}, onComplete:function (param1) { status_mc.visible = false; msgBox("Статус установлен!"); return; }// end function , onError:function (param1) { msgBox("Не удалось уствновить статус! Но вы можете сделать это вручную. Пример статуса: \"Я повышаю рейтинг в приложении http://www.vkontakte.ru/app" + par.api_id + "\" "); return; }// end function }); return; }// end function ); } else { this.main_menu_mc.status_btn.addEventListener(MouseEvent.CLICK, function (param1) { msgBox("Вы не можете принимать участие в акции, так как Ваш рейтинг меньше 200"); return; }// end function ); }