Иконоки стола и меню Стол: fscommand("launch", "idle,24"); YouTube fscommand("launch", "idle,17"); Справка fscommand("launch", "idle,13"); Мировое время fscommand("launch", "idle,16"); Калькулятор fscommand("launch", "idle,15"); Bluetooth fscommand("launch", "idle,14"); Будильник fscommand("launch", "idle,33"); Входящие сообщения fscommand("launch", "idle,40"); Написать сообщение fscommand("launch", "idle,11"); Игры fscommand("launch", "idle,27"); Интернет fscommand("launch", "idle,1"); Клавиатура fscommand("launch", "idle,2"); Контакты fscommand("launch", "idle,3"); Меню fscommand("launch", "idle,5"); Календарь fscommand("launch", "idle,34"); Заметки fscommand("launch", "idle,39"); Перезагрузка телефона fscommand("launch", "idle,79"); Сообщества fscommand("launch", "miniRadio,radioOpen"); Радио fscommand("launch", "idle,219"); ICQ (MMGJK2) fscommand("launch", "idle,217"); Opera (MMGJK2) fscommand("launch", "idle,205"); ICQ (MXEKD1) fscommand2("Send", "Widget", "Google", "Launch", 2, "gMap"); Opera (MXEKD1) fscommand("launch", "idle,24"); Профили fscommand("launch", "idlePopUp, 1, 2"); Журнал звонков fscommand("launch", "miniPlayer,listOpen"); MP3 плеер fscommand("launch", "idle,65"); Диктофон fscommand("launch", "top5,call,1"); Топ 5 вызов fscommand("launch", "top5,sms,1"); Топ 5 смс Меню: fscommand("launch", "menu,0"); Журнал вызовов fscommand("launch", "menu,1"); Контакты fscommand("launch", "menu,2"); Музыка fscommand("launch", "menu,3"); Интернет fscommand("launch", "menu,4"); Сообщения fscommand("launch", "menu,5"); Мои файлы fscommand("launch", "menu,6"); Органайзер fscommand("launch", "menu,7"); Камера fscommand("launch", "menu,8"); Сообщества fscommand("launch", "menu,9"); Приложения fscommand("launch", "menu,10"); Будильник fscommand("launch", "menu,11"); Насторойки fscommand("launch", "menu,12"); Клавиатура fscommand("launch", "menu,13"); Фотоконтакты fscommand("launch", "menu,14"); Стол fscommand("launch", "menu,15"); Новое смс fscommand("launch", "sc,0"); Samsung fun club fscommand("launch", "sc,1"); Яндекс fscommand("launch", "sc,2"); Mail.ru fscommand("launch", "sc,3"); LiveJournal fscommand("launch", "sc,4"); Газета.ру fscommand("launch", "sc,5"); Friendster fscommand("launch", "sc,6"); YouTube fscommand("launch", "sc,7"); Google fscommand("launch", "sc,8"); Picasa fscommand("launch", "sc,9"); Домой fscommand("launch", "sc,10"); На адрес fscommand("launch", "sc,11"); Закладки fscommand("launch", "sc,12"); Календарь fscommand("launch", "sc,13"); Заметки fscommand("launch", "sc,14"); Задачи fscommand("launch", "sc,15"); Мировое время fscommand("launch", "sc,16"); Калькулятор fscommand("launch", "sc,17"); Конвертер fscommand("launch", "sc,18"); Active Sync fscommand("launch", "sc,19"); Bluetooth fscommand("launch", "sc,20"); Cинхронизация fscommand("launch", "sc,21"); Таймер fscommand("launch", "sc,22"); Секундомер fscommand("launch", "sc,24"); Музыка fscommand("launch", "sc,25"); Найти музыку fscommand("launch", "sc,26"); Радио fscommand("launch", "sc,27"); Игры fscommand("launch", "sc,28"); Диктофон fscommand("launch", "sc,29"); RSS fscommand("launch", "sc,30"); Картинки fscommand("launch", "sc,31"); Видео fscommand("launch", "sc,32"); Звуки fscommand("launch", "sc,33"); Другие файлы Прогресс текст песни function Progress() { fscommand2("GetVars", "miniPlayer", "initPlayer", ""); _root.player.progress.text = Number(progressState) + "%"; } // End of the function setInterval(Pogress, 100); Название песни function NameMusic() { fscommand2("GetVars", "miniPlayer", "initPlayer", ""); _root.player.name.text = Title; } // End of the function setInterval(NameMusic, 100); Текст с индикацией уровня громкости function Volume() { fscommand2("GetVars", "miniPlayer", "initPlayer", ""); _root.player.vol.text = "Громкость:" + Vol; } // End of the function setInterval(Volume, 100); Дейсвие кнопок во время Проигрывания/Паузы трека function PlayerButtons() { fscommand2("GetVars", "miniPlayer", "initPlayer", ""); _root.player.progress.text = Number(PlayState); if (pros >= 1)//Действие во время проигрывания трека { _root.player.btn_pause._visible = true; _root.player.btn_play._visible = false; } // end if if (pros == 0)//Действие во время приостановки трека { _root.player.btn_pause._visible = false; _root.player.btn_play._visible = true; } // end if if (pros != 2) { return ("GetVars"); } // end if _root.player.btn_pause._visible = false; _root.player.btn_play._visible = true; } // End of the function setInterval(PlayerButtons, 100); Название оператора function Operator() { fscommand2("getvars", "idle", "plmn", ""); _root.operator.oper.text = _root.line1; } // End of the function setInterval(Operator, 100); Уровень заряда батареи function BattLevel() { battLevel = fscommand2("GetBatteryLevel"); maxBatt = fscommand2("GetMaxBatteryLevel"); battPercent = battLevel / maxBatt * 100; if (battPercent == 100) { _root.battery.batt.text = "100%"; } else if (battPercent1 <= 50) { _root.battery.batt.text = battPercent + "%"; } else { _root.battery.batt.text = Math.ceil(battPercent * 20 / 17) + "%"; } // end else if } // End of the function setInterval(BattLevel, 100); Индикация типа сети function NetGen() { netGen = fscommand2("GetNetworkGeneration"); switch (netGen) { case 0: { _root.netgen.network.text = ""; break; } case 1: { _root.netgen.network.text = "GPRS"; break; } case 2: { _root.netgen.network.text = "EDGE"; break; } case 3: { _root.netgen.network.text = "3G"; break; } default: { _root.netgen.network.text = ""; } } // End of switch } // End of the function setInterval(NetGen, 100); Сигнал сети function SigLevel() { sigLevel = fscommand2("GetSignalLevel"); sigStrengthMax = fscommand2("GetMaxSignalLevel"); sigPercent = sigLevel / sigStrengthMax * 100; _root.sigLevel = sigLevel; if (sigLevel == 100) { _root.siglevel.signal.text = "100%"; } else if (sigLevel <= 50) { _root.siglevel.signal.text = sigPercent + "%"; } else { _root.siglevel.signal.text = Math.ceil(sigPercent * 20 / 17) + "%"; } // end else if } // End of the function setInterval(SigLevel, 100); Нзвание оператора с индикацией типа сети function Operator2() { fscommand2("getvars", "idle", "plmn", ""); _loc1 = _root.line1; netGen = fscommand2("GetNetworkGeneration"); switch (netGen) { case 0: { _root.operator.oper.text = _loc1; break; } case 1: { _root.operator.oper.text = _loc1 + " GPRS"; break; } case 2: { _root.operator.oper1.text = _loc1 + " EDGE"; break; } case 3: { _root.operator.oper.text = _loc1 + " 3G"; break; } default: { _root.operator.oper.text = _loc1; } } // End of switch } // End of the function stop (); setInterval(Operator2, 100); Сигнал сети (Версия 2) function SigLevel2() { sigLevel = fscommand2("GetSignalLevel"); sigStrengthMax = fscommand2("GetMaxSignalLevel"); SignalLevel = sigLevel / sigStrengthMax * 100; _root.sigLevel = sigLevel; if (SignalLevel == 0) { _root.siglevel2.signal.text = "Нет сети"; _root.siglevel2.SigMov.gotoAndStop(1); } else if (SignalLevel <= 20) { _root.siglevel2.signal.text = "20"; _root.siglevel2.SigMov.gotoAndStop(2); } else if (SignalLevel <= 40) { _root.siglevel2.signal.text = "40"; _root.siglevel2.SigMov.gotoAndStop(3); } else if (SignalLevel <= 60) { _root.siglevel2.signal.text = "60"; _root.siglevel2.SigMov.gotoAndStop(4); } else if (SignalLevel <= 80) { _root.siglevel2.signal.text = "80"; _root.siglevel2.SigMov.gotoAndStop(5); } else if (SignalLevel <= 100) { _root.siglevel2.signal.text = "100"; _root.siglevel2.SigMov.gotoAndStop(6); } else { _root.siglevel2.signal.text = "Нет сети"; _root.siglevel2.SigMov.gotoAndStop(1); } // end else if } // End of the function setInterval(SigLevel2, 100); Уровень заряда батареи (Версия 2) function battery2() { battery = fscommand2("GetBatteryLevel"); maxBatt = fscommand2("GetMaxBatteryLevel"); battPercent = battery / maxBatt * 100; if (battPercent == 0) { _root.battery2.batt.text = "0"; _root.battery2.BatMov.gotoAndStop(1); } else if (battPercent <= 20) { _root.battery2.batt.text = "20"; _root.battery2.BatMov.gotoAndStop(2); } else if (battPercent <= 40) { _root.battery2.batt.text = "40"; _root.battery2.BatMov.gotoAndStop(3); } else if (battPercent <= 60) { _root.battery2.batt.text = "60"; _root.battery2.BatMov.gotoAndStop(4); } else if (battPercent <= 80) { _root.battery2.batt.text = "80"; _root.battery2.BatMov.gotoAndStop(5); } else if (battPercent <= 100) { _root.battery2.batt.text = "100"; _root.battery2.BatMov.gotoAndStop(6); } else { _root.battery2.batt.text = "0"; _root.battery2.BatMov.gotoAndStop(1); } // end else if } // End of the function setInterval(battery2, 100); Звук/Вибро fscommand2("Set", "menu", 1, 3, 0); Звук и вибро в меню fscommand2("Set", "idle", 1, 2, 0); Звук и вибро на столе Команды кнопок плеера fscommand2("Set", "miniPlayer", "setState", "prev"); Трек назад fscommand2("Set", "miniPlayer", "setState", "next"); Трек вперёд fscommand2("Set", "miniPlayer", "setState", 1); Играть fscommand2("Set", "miniPlayer", "setState", 2); Пауза Команды кнопок профилей fscommand2("Set", "idle", "Profile", 1); Профиль "Обычный" fscommand2("Set", "idle", "Profile", 2); Профиль "Без звука" fscommand2("Set", "idle", "Profile", 3); Профиль "Автомобиль" fscommand2("Set", "idle", "Profile", 4); Профиль "Встреча" fscommand2("Set", "idle", "Profile", 5); Профиль "На улице" fscommand2("Set", "idle", "Profile", 6); Профиль "Автономный" Кнопки плеера (С перемоткой) Следующий трек + Перемотка вперёд on (press) { function pressed() { clearInterval(InterID); _root.druck = 1; fscommand2("Set", "miniPlayer", "setState", "ff"); } // End of the function fscommand2("set", "Menu", 1, 3, 0); _root.druck = 0; InterID = setInterval(pressed, 300); } on (release, releaseOutside) { fscommand2("set", "Menu", 1, 3, 0); clearInterval(InterID); if (_root.druck != 1) { if (_root.druck == 0) { fscommand2("Set", "miniPlayer", "setState", "next"); } // end if } else { _root.druck = 0; fscommand2("Set", "miniPlayer", "setState", "ffEnd"); } // end else if } Предыдущий трек + Перемотка назад on (press) { function pressed() { clearInterval(InterID); _root.druck = 1; fscommand2("Set", "miniPlayer", "setState", "rw"); } // End of the function fscommand2("set", "Menu", 1, 3, 0); _root.druck = 0; InterID = setInterval(pressed, 300); } on (release, releaseOutside) { fscommand2("set", "Menu", 1, 3, 0); clearInterval(InterID); if (_root.druck == 1) { _root.druck = 0; fscommand2("Set", "miniPlayer", "setState", "rwEnd"); } else if (_root.druck == 0) { fscommand2("Set", "miniPlayer", "setState", "prev"); } // end else if } Отображение даты function dodate() { var _loc2 = new Array("Января", "Февраля ", "Марта ", "Апреля", "Мая ", "Июня", "Июля", "Августа ", "Сентября", "Октября ", "Ноября", "Декабря "); var _loc3 = new Array("Воскресенье ", "Понедельник ", "Вторник ", "Среда ", "Четверг ", "Пятница ", "Суббота "); var _loc1 = new Date(); _root.MyDate.date.text = _loc3[_loc1.getDay()] + " " + _loc1.getDate() + " " + _loc2[_loc1.getMonth()]; } // End of the function setInterval(dodate, 100); dodate(); Отображение времени function time() { var _loc1 = new Date(); if (_loc1.getHours() < 10) { _root.MyDate.hours.text = "0" + _loc1.getHours(); } else { _root.MyDate.hours.text = _loc1.getHours(); } // end else if if (_loc1.getMinutes() < 10) { _root.MyDate.minutes.text = "0" + _loc1.getMinutes(); return; } // end if _root.MyDate.minutes.text = _loc1.getMinutes(); } // End of the function setInterval(time, 100); time(); Автозагрузка обоев из настроек function loadWallpaper() { fscommand2("set", "Mode", "Gadget"); backgroundClip = createEmptyMovieClip("bg1", 0); backgroundClip._x = 0; backgroundClip._y = 0; var _loc1 = new MovieClipLoader(); fscommand2("Get", "idle", "InitWallPaper", "mainBGPath"); _loc1.loadClip(mainBGPath, bg1); delete mainBGPath; } // End of the function fscommand2("set", "Mode", "Gadget"); _root.backgroundClip = _root.createEmptyMovieClip("bg1", 0); _root.backgroundClip._x = -240; _root.backgroundClip._y = 0; var backgroundLoader = new MovieClipLoader(); fscommand2("Get", "idle", "InitWallPaper", "mainBGPath"); backgroundLoader.loadClip(_root.mainBGPath, _root.bg1); delete _root.mainBGPath; EVWallpapers = new Object(); EVWallpapers.onEvent = function (procedure) { procedure = "load"; loadWallpaper(procedure); }; ExtendedEvents.setWallpaper.addListener(EVWallpapers); procedure = "load"; loadWallpaper("load"); bg1 - мувик в который будет загружаться обоина. Скролл текста (Например названия трека) function MyScroll() { if (_root.player.name.text.length > _root.player.name.text.maxscroll) { _root.player.name.text.hscroll = _root.player.name.text.hscroll + 1; } else { _root.player.name.text.hscroll = 0; } } setInterval(MyScroll, 100); Определение текущего профиля, название текущего профиля. function Profile() { fscommand2("GetVars", "idle", "profile", ""); if (_root.state == 1) { _root.profile.ImgProf.gotoAndStop(1); _root.profile.prof.text = "Обычный"; } // end if if (_root.state == 2) { _root.profile.ImgProf.gotoAndStop(2); _root.profile.prof.text = "Без звука"; } // end if if (_root.state == 3) { _root.profile.ImgProf.gotoAndStop(3); _root.profile.prof.text = "Автомобиль"; } // end if if (_root.state == 4) { _root.profile.ImgProf.gotoAndStop(4); _root.profile.prof.text = "Встреча"; } // end if if (_root.state == 5) { _root.profile.ImgProf.gotoAndStop(5); _root.profile.prof.text = "На улице"; } // end if if (_root.state == 6) { _root.profile.ImgProf.gotoAndStop(6); _root.profile.prof.text = "Автономный"; } // end if } // End of the function setInterval(Profile, 100); Скрипт для показа пропущенного события (СМС, Вызова, Календаря). var newPopObj = new Object(); newPopObj.onEvent = function (itemNum, itemStr0, itemStr1, itemStr2) { _root.MoviePs._x = 0;//Случилось какоето событие мувик идёт в координату 0 по оси x (y) _root.MoviePs._y = 0;// "Смотри на сторчку выше ^" _root.MoviePs._visible = true; _root.MoviePs.t2.text = ""; _root.MoviePs.t3.text = ""; _root.MoviePs.t4.text = ""; _root.MoviePs.Sms._visible = false; _root.MoviePs.Cl._visible = false; _root.MoviePs.Call._visible = false; var _loc2 = itemNum.split("/"); switch (_loc2[0]) { case "1"://Действие при пропущенном вызове. { if (_loc2[4] == "Журнал") { _root.MoviePs.Call._visible = true; } else { _root.MoviePs.Call._visible = true; } // end else if break; } case "2"://Действие привходящем СМС. { _root.MoviePs.Sms._visible = true; break; } case "6"://Действие при событии календаря. { _root.MoviePs.Cl._visible = true; break; } } // End of switch _root.MoviePs.t2.text = itemStr0;//Указывает какое событие произошло. (Например: 1 новое соощ.). _root.MoviePs.t3.text = itemStr1.split("*#9BUN*#").join(" ");//Указывает имя события из за кого оно произошло. (Например: От: +79871234567). _root.MoviePs.t4.text = itemStr2;//Указывает время когда произошло событие. }; ExtendedEvents.newIdlePopupItem.addListener(newPopObj); var destroyPopObj = new Object(); destroyPopObj.onEvent = function (itemNum)//Вы просмотрели событие, действие. { _root.MoviePs._visible = false; _root.MoviePs.t2.text = ""; _root.MoviePs.t3.text = "Нет событий "; _root.MoviePs.t4.text = ""; _root.MoviePs.Sms._visible = false; _root.MoviePs.Cl._visible = false; _root.MoviePs.Call._visible = false; _root.MoviePs.Call._visible = false; }; ExtendedEvents.destroyPopupItem.addListener(this.destroyPopObj); _root.MoviePs._visible = false; Пауза в радио: fscommand2("Set", "miniRadio", "setState", "0"); Плей в радио: fscommand2("Set", "miniRadio", "setState", "1"); Следующая станция: fscommand2(«Set», «miniRadio», «changeChannel», «next»); Предыдущая станция: fscommand2(«Set», «miniRadio», «changeChannel», «prev»); Скролл addHscroll = function (_MC, rPos) { var v4 = new Array(); var v3 = _MC; var v6 = v3.TXT.text; var v5 = ' '; delete v3.onEnterFrame; v3.restartPos = rPos; v3.TXT.text += v5 + v3.TXT.text; v3.backPos = v3.TXT.maxhscroll; v3.onEnterFrame = function () { if (_root.enterFrameStart) { if (this.TXT.hscroll >= this.TXT.maxhscroll) { this.TXT.hscroll = this.restartPos; } ++this.TXT.hscroll; } }; v4 = [v3.restartPos, v3.TXT.maxhscroll]; return v4; }; как то так) как сделать чтобы при длительном удержании кнопки, срабатывала вторая функция? btn.onPress = function() { fubction timep() { app = 1; clearInterval(timepint) } app = 0; timepint = setinterval(300. timep) } btn.onRelease = function() { if( app == 1) { // длительное нажатие } if(app == 0) { // моментальное нажатие } clearInterval(timepint); delete app; }