Dunque, il mio problema è questo, vediamo se qualcuno può darmi una mano, perchè sono DISPERATO![]()
preview del filmato
L'unica sezione funzionante è eyes of truth > close up
C'era una volta un codice nel primo frame dell' mc, questo:
---------------------------------------------
mov = 1;
vel = 4;
inerz = 3.5;
acc = 1.8;
_root.tl._visible = 0;
_root.el._visible = 0;
_root.ul._visible = 0;
stop();
fscommand("fullscreen", false);
fscommand("allowscale", false);
fscommand("showmenu", false);
titles = new Array();
titles = ['ILLUSTRATIONS', 'EYES OF TRUTH', 'POST PRODUCTIONS', 'PORTFOLIO', 'ABOUT THIS', 'KEEP IN TOUCH!'];
elements = new Array();
elements = [['Ink&Pencil|#', 'Germinal|#', 'Vector|#'], ['Close-Up|f_closeup.swf|370|278|260|55', 'Ghost|#', 'Water|#', 'Rusty|#', 'Perspective|#', 'Country|#'], ['Experimental|#', 'Edited|#', 'Traced|#'], ['Site Development|#', 'Media&Illustrations|#', 'Logos|#', 'Commercial|#'], ['The 9 past editions|#', 'About Me|#', 'Wallpapers|#', 'Alliances|#', 'Credits|#'], ['Classic Mail|#', 'Site MSG|#', 'Guest Book|#']];
fixelements = new Array();
fixelements = ['News of this Month|link.htm', 'Options|link.htm'];
// ----------------------------
// Functions
// ----------------------------
function Create() {
i = 0;
for (d=0; d<fixelements.length; d++) {
duplicateMovieClip(ul, 'ul'+d, i);
_root['ul'+d]._y = 89+d*20;
_root['ul'+d].desty = 89+d*20;
mytxt = new String(fixelements[d]);
mytxt = mytxt.split('|');
_root['ul'+d].txt.text = mytxt[0];
_root['ul'+d].link = mytxt[1];
last = 89+(d+1)*25;
i++;
}
for (a=0; a<titles.length; a++) {
for (b=0; b<elements[a].length; b++) {
duplicateMovieClip(el, 'el'+a+b, i);
_root['el'+a+b]._y = last+a*20;
_root['el'+a+b].ai = 0;
_root['el'+a+b].desty = last+a*20;
mytxt = new String(elements[a][b]);
mytxt = mytxt.split('|');
_root['el'+a+b].txt.text = mytxt[0];
_root['el'+a+b].link = mytxt[1];
_root['el'+a+b].xx = mytxt[2];
_root['el'+a+b].yy = mytxt[3];
_root['el'+a+b].xi = mytxt[4];
_root['el'+a+b].yi = mytxt[5];
_root['el'+a+b].rr = mytxt[6];
i++;
}
}
for (c=0; c<titles.length; c++) {
duplicateMovieClip(tl, 'tl'+c, i);
_root['tl'+c]._y = last+c*20;
_root['tl'+c].desty = last+c*20;
_root['tl'+c].txt.text = titles[c];
_root['tl'+c].num = c;
_root['tl'+c].open = false;
i++;
}
}
function Open(a) {
_root['tl'+a].open = true;
for (b=0; b<elements[a].length; b++) {
lasty = _root['el'+a+b].desty+((b+1)*20);
_root['el'+a+b].desty = lasty;
_root['el'+a+b].ai = 100;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function Close(a) {
_root['tl'+a].open = false;
for (b=0; b<elements[a].length; b++) {
lasty = _root['tl'+a]._y;
_root['el'+a+b].desty = lasty;
_root['el'+a+b].ai = 0;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function CloseOpened() {
for (a=0; a<titles.length; a++) {
if (_root['tl'+a].open) {
_root.Close(_root['tl'+a].num);
}
}
}
Create();
--------------------------------------------------
Poi c'erano dei pulsanti con questi enterFrame
riferiti rispettivamente al codice soprastante, questo è quello di 'el', identico a 'ul' e 'tl':
--------------------------------------------------
onClipEvent (enterFrame) {
//Primo caso.
if (_root.mov == 1) {
dy = (dy+(desty-_y)/_root.inerz)/_root.acc;
aa = (aa+(ai-_alpha)/_root.inerz)/_root.acc;
_y += dy;
_alpha+= aa;
//secondo caso.
} else if (_root.mov == 2) {
_y += (desty-_y)/_root.vel;
_alpha+= (ai-_alpha)/_root.vel;
}
}
------------------------------------------------------
Sto cercando di ottimizzare il tutto, ma non so come integrarlo nello script, dove e come posso inserirlo in modo ottimerrimo?
:: Eönwë