Script per i temi, ecco quello che ci serve!!
+2
Nico97
AndyTeck
6 partecipanti
Pagina 1 di 1
Script per i temi, ecco quello che ci serve!!
Ecco a voi gli script per le funzioni principali:
Script per l'orologio. Crediti: Valentinorossi46.
Eccovi uno script per l'ora
CODICE:
Ok, gli script ci sono XD
Script per l'orologio. Crediti: Valentinorossi46.
Eccovi uno script per l'ora
CODICE:
- Spoiler:
- Codice:
function setTime()
{
var __reg1 = new Date();
hour = __reg1.getHours();
minutes = __reg1.getMinutes();
if (mode)
{
time = hour + ":" + minutes;
ampm = "";
}
if (mode == false)
{
if (hour > 12)
{
hour = hour - 12;
ampm = "pm";
}
else
{
ampm = "am";
}
}
if (length(hour) == 1)
{
hour = "0" + hour;
}
if (length(minutes) == 1)
{
minutes = "0" + minutes;
}
time_txt.text = hour + ":" + minutes;
}
function updateTime()
{
setInterval(setTime, 60000);
setTime();
}
var TimeStuff = _global.mflash_DataRead("Keylock.ClockInfo", "Time^TimeFormat^TimeMode", "SSS", 0, 1);
if (TimeStuff[0].TimeMode == 24)
{
mode = true;
}
else
{
mode = false;
}
updateTime();
dovete creare 2 dynamic texts con scritto: in uno, su instance nome, mettete: Clock_Hours e nell'altro, sempre su instance name, mette: Clock_Minutes...
Convertite tutto in movie clip! Dopo editate il clip e nella frame mettete lo script! Adesso dovrebbe andare.
Script per lo slide:
Due pagine:
onClipEvent(mouseDown)
{
this.startDrag(false, 0, 0, 248, 0);
slideto1 = false;
slideto2 = false;
}onClipEvent(mouseUp)
{
this.stopDrag();
if (page == 1)
{
if (this._x >= 190)
{
slideto1 = true;
slideto2 = false;
}
else
{
slideto1 = false;
slideto2 = true;
}
}
if (page == 2)
{
if (this._x <= 58)
{
slideto1 = false;
slideto2 = true;
}
else
{
slideto1 = true;
slideto2 = false;
}
}
}onClipEvent(load)
{
this._xscale = 200;
this._yscale = 200;
this._x = 367;
this._y = 230;
this._alpha = 0;
this._visible = false;
fadein = true;
}onClipEvent(enterFrame)
{
function pop()
{
_parent.popupnow = true;
}
if (this._x > 200)
{
page = 1;
}
if (this._x <= 48)
{
page = 2;
}
if (slideto1)
{
if (this._x < 247)
{
slidespeed = 248 - this._x;
this._x = this._x + slidespeed / 2;
if (this._x > 248)
{
this._x = 248;
slideto1 = false;
}
}
}
else
{
if (slideto2)
{
if (this._x > 0)
{
slidespeed = this._x;
this._x = this._x - slidespeed / 2;
if (this._x < 0)
{
this._x = 0;
slideto2 = false;
}
}
}
}
if (fadeout)
{
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this._x = this._x + 12;
this._y = this._y + 7;
this._alpha = this._alpha - 15;
if (this._alpha < 10)
{
this._visible = false;
}
}
if (fadein)
{
this._visible = true;
this._xscale = this._xscale - 20;
this._yscale = this._yscale - 20;
this._x = this._x - 24;
this._y = this._y - 14;
this._alpha = this._alpha + 20;
if (this._alpha > 99)
{
fadein = false;
}
}
if (fadeout2)
{
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this._x = this._x - 12;
this._y = this._y + 7;
this._alpha = this._alpha - 15;
if (this._alpha < 10)
{
this._visible = false;
}
}
}
tre pagine:
onClipEvent(load)
{
timer = false;
slide = true;
getURL("FSCommand:setHighQuality", 2);
}
onClipEvent(enterFrame)
{
if(timer)
{
elapsedTime = getTimer()-startTime;
if (elapsedTime>2000)
{
_root.popup._x = 0;
_root.popup._y = 48;
timer = false;
slide = false;
}
}
if (slide)
{
if (autoslide == undefined) {
autoslide = function (target){
if (drag == true){
trace("Position dragged: "+target._x);
if (target._x < -110) {
trace("debug: Right Page");
target._x -= 8;
if (target._x <= -240){
target._x = -240;
_root.D3._x = 41;
drag = false;
}
}
if (target._x > 110) {
trace("debug: Left Page");
target._x += 8;
if (target._x >= 240){
target._x = 240;
_root.D2._x = 190;
drag = false;
}
}
if (target._x > -110 and target._x < 0) {
trace("debug: Center Page (right)");
target._x += 8;
if (target._x >= 0){
target._x = 0;
_root.D3._x = 205;
drag = false;
}
}
if (target._x < 110 and target._x > 0) {
trace("debug: Center Page (left)");
target._x -= 8;
if (target._x <= 0){
target._x = 0;
_root.D2._x = 25;
drag = false;
}
}
} else {
clearInterval(SlidePage);
}
}
}
}
this.onMouseDown = function()
{
drag = false;
if (slide = true)
{
timer = false;
}
if (timer = true)
{
slide = false;
}
clearInterval(SlidePage);
this.startDrag(false, 240, 0, -240, 0);
}
this.onMouseUp = function()
{
drag = true;
SlidePage = setInterval(autoslide, 15, this);
this.stopDrag();
}
}
onClipEvent(mouseDown)
{
startTime = getTimer();
timer = true;
slide = false;
}
onClipEvent(mouseUp)
{
timer = false;
}
quattro pagine:
onClipEvent (mouseDown) {
this.startDrag(false, 240, 0, -480, 0.);
slideto1 = false;
slideto2 = false;
slideto3 = false;
slideto4 = false;
}
onClipEvent (mouseUp) {
this.stopDrag();
if (page == 1)
{
if (this._x<400)
{
slideto1 = false;
slideto2 = true;
slideto3 = false;
slideto4 = false;
}
else
{
slideto1 = true;
slideto2 = false;
slideto3 = false;
slideto4 = false;
}
}
if (page == 2)
{
if (this._x<190)
{
slideto1 = false;
slideto2 = false;
slideto3 = true;
slideto4 = false;
}
else
{
if (this._x>270)
{
slideto1 = true;
slideto2 = false;
slideto3 = false;
slideto4 = false;
}
else
{
slideto1 = false;
slideto2 = true;
slideto3 = false;
slideto4 = false;
}
}
}
if (page == 3)
{
if (this._x>68)
{
slideto1 = false;
slideto2 = true;
slideto3 = false;
slideto4 = false;
}
else
{
if (this._x<-60)
{
slideto1 = false;
slideto2 = false;
slideto3 = false;
slideto4 = true;
}
else
{
slideto1 = false;
slideto2 = false;
slideto3 = true;
slideto4 = false;
}
}
}
if (page == 4)
{
if (this._x>(-200))
{
slideto1 = false;
slideto2 = false;
slideto3 = true;
slideto4 = false;
}
else
{
slideto1 = false;
slideto2 = false;
slideto3 = false;
slideto4 = true;
}
}
}
onClipEvent (enterFrame) {
if (this._x>460)
{
page = 1;
}
if (this._x<260 && this._x>210)
{
page = 2;
}
if (this._x<30 && this._x > -30)
{
page = 3;
}
if (this._x<-200)
{
page = 4;
}
if (slideto1)
{
if (this._x<480)
{
slidespeed = 480 - this._x;
this._x += slidespeed/2;
if (this._x>480)
{
this._x = 480;
slideto1 = false;
}
}
}
if (slideto2)
{
if (this._x<247)
{
slidespeed = 248-this._x;
this._x += slidespeed/2;
if (this._x>248)
{
this._x = 248;
slideto2 = false;
}
}
if (this._x>247)
{
slidespeed = this._x-248;
this._x -= slidespeed/2;
if (this._x<248)
{
this._x = 248;
slideto2 = false;
}
}
}
if (slideto3)
{
if (this._x>-10)
{
slidespeed = 10 +this._x;
this._x -= slidespeed/2;
if (this._x<-10)
{
this._x = -10;
slideto3 = false;
}
}
if (this._x<-10)
{
slidespeed = -10 -this._x;
this._x += slidespeed/2;
if (this._x>-10)
{
this._x = -10;
slideto3 = false;
}
}
}
if (slideto4)
{
if (this._x>-250)
{
slidespeed = this._x + 250;
this._x -= slidespeed/2;
if (this._x<-250)
{
this._x = -250;
slideto4 = false;
}
}
}
}
Slide cinque pagine:
onClipEvent(load)
{
var saved = SharedObject.getLocal("Data");
page = new Array(6, 670, 431, 191, -46, -286);
pagel = new Array(6, 244, -80, -402, -728, -1052);
if (saved.data.displaymode == "landscape")
{
this._y = pagel[saved.data.currentpage];
}
else
{
this._x = page[saved.data.currentpage];
trace(page[saved.data.currentpage]);
}
if (!saved.data.currentpage)
{
this._x = 670;
}
_root.dots.shown = 0;
}onClipEvent(mouseDown)
{
blockpress = false;
slide = false;
if (_root.popupmenu._x < 10)
{
if (_root.displaymode == "landscape")
{
this.startDrag(false, 100, pagel[1] + 15, 100, pagel[maxpagesl] - 15);
}
else
{
this.startDrag(false, page[1] + 15, 160, page[this.maxpages] - 15, 160);
}
}
else
{
blockpress = true;
}
}onClipEvent(mouseUp)
{
getURL("FSCommand:Common_CMD", "TouchFeedback^FLICKING");
this.stopDrag();
if (_root.displaymode != "landscape")
{
if (this._x < page[currentpage] - 20 || this._x > page[currentpage] + 20)
{
blockpress = true;
}
if (this._x < page[currentpage] - 50)
{
++currentpage;
}
else
{
if (this._x > page[currentpage] + 50)
{
--currentpage;
}
}
}
if (_root.displaymode == "landscape")
{
if (this._y < pagel[currentpage] - 20 || this._y > pagel[currentpage] + 20)
{
blockpress = true;
}
if (_root.popupmenu._x > -100)
{
blockpress = true;
}
if (this._y < pagel[currentpage] - 50)
{
++currentpage;
}
else
{
if (this._y > pagel[currentpage] + 50)
{
--currentpage;
}
}
}
slide = true;
}onClipEvent(enterFrame)
{
function pop()
{
_parent.popupnow = true;
}
function reloadarray()
{
};
if (_root.dots.shown < 3)
{
_root.dots.shown = _root.dots.shown + 1;
}
else
{
_root.dots._alpha = 100;
}
if (Key.isDown(40))
{
getURL("FSCommand:Idle_CMD", "TrayClose");
startTime = getTimer();
timer = "true";
}
if (timer == "true")
{
elapsedTime = getTimer() - startTime;
if (elapsedTime > 2000)
{
timer = "false";
getURL("FSCommand:Idle_CMD", "TrayClose");
getURL("FSCommand:Idle_CMD", "TrayOpen");
}
_parent.input = elapsedTime;
}
if (_root.displaymode != "landscape")
{
if (maxpages == 2)
{
_root.dots.gotoAndStop(currentpage + 3);
}
if (maxpages == 3)
{
_root.dots.gotoAndStop(currentpage);
}
if (maxpages == 4)
{
_root.dots.gotoAndStop(currentpage + 5);
}
if (maxpages == 5)
{
_root.dots.gotoAndStop(currentpage + 9);
}
scan = 1;
while (scan < page[0])
{
if (this._x < page[scan] + 30 && this._x > page[scan] - 30)
{
currentpage = scan;
}
++scan;
}
}
if (_root.displaymode == "landscape")
{
if (maxpagesl == 2)
{
_root.dots.gotoAndStop(currentpage + 3);
}
if (maxpagesl == 3)
{
_root.dots.gotoAndStop(currentpage);
}
if (maxpagesl == 4)
{
_root.dots.gotoAndStop(currentpage + 5);
}
if (maxpages == 5)
{
_root.dots.gotoAndStop(currentpage + 9);
}
scan = 1;
while (scan < pagel[0])
{
if (this._y < pagel[scan] + 30 && this._y > pagel[scan] - 30)
{
currentpage = scan;
}
++scan;
}
}
if (slide)
{
if (saved.data.displaymode != "landscape")
{
slidespeed = Math.round((this._x - page[currentpage]) / 1.8);
this._x = this._x - slidespeed;
if (this._x > page[currentpage] - 1 && this._x < page[currentpage] + 1)
{
this._x = page[currentpage];
slide = false;
saved.data.currentpage = currentpage;
}
}
if (saved.data.displaymode == "landscape")
{
slidespeed = Math.round((this._y - pagel[currentpage]) / 1.8);
this._y = this._y - slidespeed;
if (this._y > pagel[currentpage] - 1 && this._y < pagel[currentpage] + 1)
{
this._y = pagel[currentpage];
slide = false;
saved.data.currentpage = currentpage;
}
}
}
if (fadeout)
{
this._parent.dots._alpha = this._parent.dots._alpha - 15;
this._alpha = this._alpha - 15;
if (this._alpha < 10)
{
this._visible = false;
this._parent.dots._visible = false;
_root.bottombar._visible = false;
this._parent.browser._visible = false;
this._parent.messaging._visible = false;
this._parent.music._visible = false;
this._parent.phone._visible = false;
this._parent.messagingtxt._visible = false;
this._parent.phonetxt._visible = false;
this._parent.browsertxt._visible = false;
this._parent.ipodtxt._visible = false;
}
}
if (fadein)
{
this._visible = true;
this._alpha = this._alpha + 20;
if (this._alpha > 99)
{
fadein = false;
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
}
}
if (fadeout2)
{
this._alpha = this._alpha - 15;
this._parent.dots._alpha = this._parent.dots._alpha - 15;
if (this._alpha < 10)
{
this._visible = false;
this._parent.dots._visible = false;
}
}
}
Crediti Lucariox
Poi:
Sblocco (quando si tiene premuto ci vogliono tre secondi per lo sblocco):
on(press){
this.orange_button._alpha = 15; // if the button is pressed make it see trough (transparent being alpha = 0 and fully shown alpha = 100)
}
on(dragOut){
this.orange_button._alpha = 100; // if you drag your finger off the button it will stop the see through effect
}
on(release){
getURL("FSCommand:Idle_CMD", "IconPressed^6"); // here's the menu connection, 6 is the "New Sms" menu
this.orange_button._alpha = 100; // stops the see through effect
}
Sblocco immediato:
on(press){
this.orange_button._alpha = 15; // if the button is pressed make it see trough (transparent being alpha = 0 and fully shown alpha = 100)
}
on(dragOut){
this.orange_button._alpha = 100; // if you drag your finger off the button it will stop the see through effect
}
on(release){
getURL("FSCommand:Idle_CMD", "StateNameChange"); // here's the menu connection, 6 is the "New Sms" menu
this.orange_button._alpha = 100; // stops the see through effect
}
Crediti: Valentinorossi46
Sfondo predefinito:
function loadWallpaper()
{
var __reg2 = _global.mflash_DataRead("Idle.CommonView", "WallpaperImg", "I", 0, 1);
wallpaperBmp = __reg2[0].WallpaperImg;
bground.attachBitmap(wallpaperBmp, 2);
}
loadWallpaper()
Va inserito nella frame e poi si deve mettere un'immagine come sfondo, convertirla in movie clip e mettere su instance name (instanza nome) "bground"; questo movie clip potete chiamarlo come volete ma su intance name dovete mettere "bground"
Guida by Valentinoroossi46
Codice per far muovere le icone:
on (press)
{
_root.ResetPosition = false;
this.startDrag(false,0,350,195,25.4);
this._alpha = 50;
}
on (release)
{
this.stopDrag();
_root.rilascio();
this._alpha = 100;
}
crediti valentinorossi46
Infine i codici script per i bottoni
Aziona icona:
on (release)
{
getURL("FSCommand:Idle_CMD", "IconPressed^6");
}
sostituire il numero "6" con uno dei seguenti numeri per fare un'altra azione:
0 - Dialling screen
1 - Speed dials
2 - Add contact
3 - Contacts
4 - Groups
5 - All calls
6 - New SMS
7 - New e-mail
8 - Inbox
9 - Messaging
10 - Mailbox
11 - Drafts
12 - Outbox
13 - Sent items
14 - My folders (sms, not mystuff)
15 - Gallery
16 - My images
17 - My sounds
18 - My videos
19 - My games & apps (from my stuff)
20 - Flash contents (lol)
21 - Documents
22 - Others
23 - External memory
24 - Camera
25 - Video camera
26 - Muvee studio
27 - Music
28 - Radio
29 - Games& apps (directly from menu, must be same as 19)
30 - Browser (home page)
31 - Browser (enter address)
32 - Browser (bookmarks)
33 - Browser (RSS reader)
34 - Browser (saved pages)
35 - (my phone freezed, but it should be drawing panel, i will try to find out later.)
36 - Calendar
37 - To do
38 - Date finder
39 - Alarms
40 - Memo
41 - Voice recorder
42 - Calculator
43 - Converter
44 - Stopwatch
45 - Profiles
46 - Screen settings
47 - Phone settings
48 - Call settings
49 - Touchscreen effect
50 - Connectivity
51 - Paired devices (bluetooth)
52 - Some error
Ok, gli script ci sono XD
Ultima modifica di AndyTeck il Gio Dic 30, 2010 12:04 pm - modificato 2 volte.
AndyTeck- Mod
- Messaggi : 77
Data d'iscrizione : 28.12.10
Età : 27
Nico97- Mod
- Messaggi : 55
Data d'iscrizione : 22.12.10
Re: Script per i temi, ecco quello che ci serve!!
Ah, risolvo subito, scusate
AndyTeck- Mod
- Messaggi : 77
Data d'iscrizione : 28.12.10
Età : 27
Re: Script per i temi, ecco quello che ci serve!!
Grazie XD Appena capisco come risolvere il problema spoiler li rimetto!!
AndyTeck- Mod
- Messaggi : 77
Data d'iscrizione : 28.12.10
Età : 27
Re: Script per i temi, ecco quello che ci serve!!
Mettili in spoiler e poi in codice... così:
- Spoiler:
- Codice:
Ciao da Elis xD
Re: Script per i temi, ecco quello che ci serve!!
Vedo che hai attuato il mio consiglio XD Ora è molto meglio
Io in passato creavo temi
Io in passato creavo temi
Cheez- Admin
- Messaggi : 46
Data d'iscrizione : 22.12.10
Re: Script per i temi, ecco quello che ci serve!!
Ah, ok grazie mille, perchè prima davano qualche problemino!!Elis ha scritto:Mettili in spoiler e poi in codice... così:Comunque bravo per averli postati
- Spoiler:
- Codice:
Ciao da Elis xD
AndyTeck- Mod
- Messaggi : 77
Data d'iscrizione : 28.12.10
Età : 27
Re: Script per i temi, ecco quello che ci serve!!
non capisco come inserire il codice dell'ora
giosuè- Utente Attivo
- Messaggi : 29
Data d'iscrizione : 16.02.11
Età : 29
Località : Favara-->Agrigento-->Sicilia-->Italia-->Europa-->Terra-->Universo-->...
Re: Script per i temi, ecco quello che ci serve!!
Nemmeno io...!xDD
Ho semplicemente preso l'orologio che mi interessava già con gli script e tutto...!xDDD
Ho semplicemente preso l'orologio che mi interessava già con gli script e tutto...!xDDD
giosuè- Utente Attivo
- Messaggi : 29
Data d'iscrizione : 16.02.11
Età : 29
Località : Favara-->Agrigento-->Sicilia-->Italia-->Europa-->Terra-->Universo-->...
Argomenti simili
» Theme Manager Temi INFINITI By Me O.O
» [GUIDA] Inserire Temi tramite PENDRIVE...
» Ciaoo mi serve un mano
» Raga mi serve aiuto...
» Ragazzi ecco il mio Forum personale :D
» [GUIDA] Inserire Temi tramite PENDRIVE...
» Ciaoo mi serve un mano
» Raga mi serve aiuto...
» Ragazzi ecco il mio Forum personale :D
Pagina 1 di 1
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.
|
|