0
1 2 3 4 5 6 7 8 9 10 11
function READ_MAIL() {
if (mc_MESS._currentframe==1) {
if (mails_body.substr((mails_num - 1) * 9, 1) == "1") {// sys mail
GET_SYS_MAIL(mails_body.substr((mails_num - 1) * 9 + 1, 8))
}else if (mails_body.substr((mails_num - 1) * 9, 1) == "2") {// user mail
GET_USER_MAIL(mails_body.substr((mails_num - 1) * 9 + 1, 8))
}else if (mails_body.substr((mails_num - 1) * 9, 1) == "5") {//present
GET_PRESENT_MAIL(mails_body.substr((mails_num - 1) * 9 + 1, 8))
}
}
}
Читаем данные...
kyzi007 ,
11.11.2011 (Updated 25.03.2018 )
0
1 2 3
design.product_btn.txt.txt.text = getLocalizedText('MENUS.WAREHOUSE.PRODUCTS', "Продукты", "Fla");
design.inventory_btn.txt.txt.text = getLocalizedText('MENUS.WAREHOUSE.INVENTORY', "Инвентарь", "Fla");
design.materials_btn.txt.txt.text = getLocalizedText('MENUS.WAREHOUSE.MATERIALS', "Материалы", "Fla");
Зачем дополнительный мувик без эффектов — ума не приложу.
txt.txt.text!
grin ,
11.11.2011 (Updated 25.03.2018 )
0
1 2 3 4
// в BudgetDataVO.as
public static const CONSOLIDATE_DATA:int = 3; // when consolidated view is open
// в другом месте:
var firstIndex:int = type == BudgetDataVO.CONSOLIDATE_DATA ? -1 : 0;
Все тот же Сан Диего.
wvxvw ,
08.11.2011 (Updated 25.03.2018 )
0
1 2
if (_start > _end) _start = _end;
if (_end < _start) _end = _start;
c пламенным приветом = )
Lure Of Chaos ,
05.11.2011 (Updated 25.03.2018 )
0
1 2 3 4
private function validateString(s:String):Boolean
{
return s != null && s.length > 0;
}
Все тот же Сан Диего, true story.
wvxvw ,
03.11.2011 (Updated 25.03.2018 )
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
public function onKeyDown(keyDn:uint):void
{
switch(keyDn)
{
case 38 : isUP = true; break;
case 87 : isUP = true; break;
case 40: isDOWN = true; break;
case 83: isDOWN = true; break;
case 37 : isLEFT = true; break;
case 65 : isLEFT = true; break;
case 39 : isRIGHT = true; break;
case 68 : isRIGHT = true; break;
case 32 : многоКода
case 16 : многоКода
}
копипастка с моего любимого демиарта
KirAmp ,
02.11.2011 (Updated 25.03.2018 )
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
_friend_.D2.mc_LOJKA.gotoAndStop(_friend_.D2.mc_LOJKA._totalframes)
if (FR_GETKEY(64) == "A") {_friend_.D2.mc_LOJKA.gotoAndStop(1)}
if (FR_GETKEY(352) == "A") {_friend_.D2.mc_LOJKA.gotoAndStop(2)}
if (FR_GETKEY(356) == "A") {_friend_.D2.mc_LOJKA.gotoAndStop(3)}
if (FR_GETKEY(363) == "A") { _friend_.D2.mc_LOJKA.gotoAndStop(4) }
if (FR_GETKEY(353) == "A") {_friend_.D2.mc_LOJKA.gotoAndStop(4)}
_friend_.D2.mc_TARELKI.gotoAndStop(_friend_.D2.mc_TARELKI._totalframes)
if (FR_GETKEY(5) == "A") {_friend_.D2.mc_TARELKI.gotoAndStop(1)}
if (FR_GETKEY(4) == "A") {_friend_.D2.mc_TARELKI.gotoAndStop(2)}
if (FR_GETKEY(3) == "A") {_friend_.D2.mc_TARELKI.gotoAndStop(3)}
_friend_.D4.mc_BUTILKA.gotoAndStop(_friend_.D4.mc_BUTILKA._totalframes)
if (FR_GETKEY(42) == "A") {_friend_.D4.mc_BUTILKA.gotoAndStop(1)}
if (FR_GETKEY(43) == "A") {_friend_.D4.mc_BUTILKA.gotoAndStop(2)}
if (FR_GETKEY(44) == "A") {_friend_.D4.mc_BUTILKA.gotoAndStop(3)}
_friend_.D4.mc_NEPROLIVAIKA.gotoAndStop(_friend_.D4.mc_NEPROLIVAIKA._totalframes)
if (FR_GETKEY(357) == "A") {_friend_.D4.mc_NEPROLIVAIKA.gotoAndStop(1)}
if (FR_GETKEY(26) == "A") {_friend_.D4.mc_NEPROLIVAIKA.gotoAndStop(2)}
_friend_.D4.mc_SOSKA.gotoAndStop(_friend_.D4.mc_SOSKA._totalframes)
if (FR_GETKEY(40) == "A") {_friend_.D4.mc_SOSKA.gotoAndStop(1)}
if (FR_GETKEY(38) == "A") {_friend_.D4.mc_SOSKA.gotoAndStop(2)}
if (FR_GETKEY(37) == "A") {_friend_.D4.mc_SOSKA.gotoAndStop(3)}
_friend_.D4.mc_ERSHIK.gotoAndStop(_friend_.D4.mc_ERSHIK._totalframes)
if (FR_GETKEY(121) == "A") {_friend_.D4.mc_ERSHIK.gotoAndStop(1)}
_friend_.D5.mc_NAGRUDNIK.gotoAndStop(_friend_.D5.mc_NAGRUDNIK._totalframes)
if (FR_GETKEY(362) == "A") {_friend_.D5.mc_NAGRUDNIK.gotoAndStop(1)}
_friend_.D5.mc_TERMOS.gotoAndStop(_friend_.D5.mc_TERMOS._totalframes)
if (FR_GETKEY(46) == "A") {_friend_.D5.mc_TERMOS.gotoAndStop(1)}
_friend_.D7.F47.gotoAndStop(_friend_.D7.F47._totalframes)
if (FR_GETKEY(47) * 1 > 0) { _friend_.D7.F47.gotoAndStop(1); _friend_.D7.F47.NUM.gotoAndStop(FR_GETKEY(47)*1)}
_friend_.D7.F50.gotoAndStop(_friend_.D7.F50._totalframes)
if (FR_GETKEY(50) * 1 > 0) { _friend_.D7.F50.gotoAndStop(1);_friend_.D7.F50.NUM.gotoAndStop(FR_GETKEY(50)*1)}
_friend_.D7.F49.gotoAndStop(_friend_.D7.F49._totalframes)
if (FR_GETKEY(49) * 1 > 0) { _friend_.D7.F49.gotoAndStop(1);_friend_.D7.F49.NUM.gotoAndStop(FR_GETKEY(49)*1)}
_friend_.D7.F48.gotoAndStop(_friend_.D7.F48._totalframes)
if (FR_GETKEY(48) * 1 > 0) { _friend_.D7.F48.gotoAndStop(1); _friend_.D7.F48.NUM.gotoAndStop(FR_GETKEY(48)*1)}
_friend_.D8.F17.gotoAndStop(_friend_.D8.F17._totalframes)
if (FR_GETKEY(17) * 1 > 0) { _friend_.D8.F17.gotoAndStop(1);_friend_.D8.F17.NUM.gotoAndStop(FR_GETKEY(17) * 1)}
_friend_.D8.F61.gotoAndStop(_friend_.D8.F61._totalframes)
if (FR_GETKEY(61) * 1 > 0) { _friend_.D8.F61.gotoAndStop(1);_friend_.D8.F61.NUM.gotoAndStop(FR_GETKEY(61)*1)}
_friend_.D8.F62.gotoAndStop(_friend_.D8.F62._totalframes)
if (FR_GETKEY(62) * 1 > 0) { _friend_.D8.F62.gotoAndStop(1);_friend_.D8.F62.NUM.gotoAndStop(FR_GETKEY(62)*1)}
_friend_.D8.F20.gotoAndStop(_friend_.D8.F20._totalframes)
if (FR_GETKEY(20) * 1 > 0) { _friend_.D8.F20.gotoAndStop(1);_friend_.D8.F20.NUM.gotoAndStop(FR_GETKEY(20)*1)}
_friend_.D8.F19.gotoAndStop(_friend_.D8.F19._totalframes)
if (FR_GETKEY(19) * 1 > 0) { _friend_.D8.F19.gotoAndStop(1);_friend_.D8.F19.NUM.gotoAndStop(FR_GETKEY(19)*1)}
_friend_.D8.F18.gotoAndStop(_friend_.D8.F18._totalframes)
if (FR_GETKEY(18) * 1 > 0) { _friend_.D8.F18.gotoAndStop(1);_friend_.D8.F18.NUM.gotoAndStop(FR_GETKEY(18)*1)}
_friend_.D9.F25.gotoAndStop(_friend_.D9.F25._totalframes)
if (FR_GETKEY(25) * 1 > 0) { _friend_.D9.F25.gotoAndStop(1);_friend_.D9.F25.NUM.gotoAndStop(FR_GETKEY(25)*1)}
_friend_.D10.F24.gotoAndStop(_friend_.D10.F24._totalframes)
И еще 200 строк продолжения за кадром.
kyzi007 ,
02.11.2011 (Updated 25.03.2018 )
0
1 2 3 4
if (players.indexOf(String(Game.uid)) == 0)
players.shift();
else
players.pop();
KirAmp ,
31.10.2011 (Updated 25.03.2018 )
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
switch(budget.statusKey)
{
case BudgetMetadata.STATUS_COMPLETE:
enableAccept = true;
enablePublish = false;
enableExport = true;
break;
case BudgetMetadata.STATUS_ACCEPTED:
enableAccept = false;
enablePublish = true;
enableExport = true;
break;
case BudgetMetadata.STATUS_PROGRESS || BudgetMetadata.STATUS_REVIEW ||
BudgetMetadata.STATUS_REJECTED || BudgetMetadata.STATUS_PUBLISHED:
enableAccept = false;
enablePublish = false;
enableExport = true;
break;
default:
enableAccept = false;
enablePublish = false;
enableExport = false;
break;
}
Привет ис Сан Диего :) Не знаю, как у них работало, я как ни соберу - VerifyError, но один рабочий экземпляр сохранил.
wvxvw ,
31.10.2011 (Updated 25.03.2018 )
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
private function columnChange():void{
if(columnsCombo.selectedIndex == 9||
columnsCombo.selectedIndex == 10||
columnsCombo.selectedIndex == 11||
columnsCombo.selectedIndex == 12||
columnsCombo.selectedIndex == 13||
columnsCombo.selectedIndex == 14||
columnsCombo.selectedIndex == 18||
columnsCombo.selectedIndex == 23){
typesCombo.enabled = true;
typesCombo.selectedIndex = 1;
}else{
typesCombo.enabled = false;
typesCombo.selectedIndex = 0;
}
as3 Flex 3 SDK
Табличка с неимоверным количеством столбцов, данный код был найден в компоненте фильтра таблицы, использовался для определения является ли содержимое столбца датой. Проблема возникла тогда когда заказчик решил изменить количество столбцов =)
remlend ,
27.10.2011 (Updated 25.03.2018 )