ciao a tutti...
allora....ho un cliclo for che mi crea dei mc, ma vorrei che tra un ciclo e un altro aspettasse un tot di tempo o di frame...
e' possibile???
ciaooo
ciao a tutti...
allora....ho un cliclo for che mi crea dei mc, ma vorrei che tra un ciclo e un altro aspettasse un tot di tempo o di frame...
e' possibile???
ciaooo
posta il code, e vediamo come crei le MCOriginariamente inviato da zoc
ciao a tutti...
allora....ho un cliclo for che mi crea dei mc, ma vorrei che tra un ciclo e un altro aspettasse un tot di tempo o di frame...
e' possibile???
ciaooo
poi vediamo come mettere il time
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
ciao grazie mille!!
lo creo cosi':
function Compila() {
maxTit = tit_news_arr.length-1;
for (k=0; k<=maxTit; k++) {
newsMC.attachMovie("tr", "tr"+k, k);
newsMC["tr"+k]._x = 5;
newsMC["tr"+k]._y = 12*k;
newsMC["tr"+k].titolo.text = tit_news_arr[k];
newsMC["tr"+k].testo.text = text_news_arr[k];
}
}
ciaoooo
così le attacchi dalla libreria, avevi parlato di "creare"Originariamente inviato da zoc
ciao grazie mille!!
lo creo cosi':
function Compila() {
maxTit = tit_news_arr.length-1;
for (k=0; k<=maxTit; k++) {
newsMC.attachMovie("tr", "tr"+k, k);
newsMC["tr"+k]._x = 5;
newsMC["tr"+k]._y = 12*k;
newsMC["tr"+k].titolo.text = tit_news_arr[k];
newsMC["tr"+k].testo.text = text_news_arr[k];
}
}
ciaoooo
:master:
hai solo questo codeAS ?
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
praticamente il movie clip TR serebbe colui che ha i blocchi di testo dinamici....
io vorrei distanziare le loro creazioni in modo da pter metter un anumazioncina...
questo e' il codice...
newsMC.setMask(maschera);
//----------recupera dati xml-------------
fileXML = new XML();
fileXML.load("fileXML.xml");
fileXML.onLoad = Estrai;
db = new Array();
//-------funzioni-----------------------
function Estrai(success) {
if (fileXML.loaded) {
db = fileXML.childNodes;
Distribuisci();
Compila();
}
}
function Distribuisci() {
tit_news_arr = new Array();
text_news_arr = new Array();
maxTR = db.length;
for (k=0; k<=maxTR; k++) {
if (db[k].nodeName == "news") {
tit_news_arr.push(db[k].attributes.tit_news.toString());
text_news_arr.push(db[k].childNodes.toString());
}
}
}
function Compila() {
maxTit = tit_news_arr.length-1;
for (k=0; k<=maxTit; k++) {
newsMC.attachMovie("tr", "tr"+k, k);
newsMC["tr"+k]._x = 5;
newsMC["tr"+k]._y = 12*k;
newsMC["tr"+k].titolo.text = tit_news_arr[k];
newsMC["tr"+k].testo.text = text_news_arr[k];
}
}
uan domanda....ma se creo in una funzione sulla linea temporale una variabile, perche sempre sulla linea temporale non posso recuperarla??
grazie e cioaaaa
ormai ci sono quasi...
ecco il codice da metter per lo scroll:
firstPos = newsMC._y;
widthMC = (19*12);
fineScroll = maschera._y-widthMC;
newsMC.onEnterFrame = function() {
this._y -= 1;
if (this._y<fineScroll) {
this._y = firstPos;
}
};
solo che al posto di 19 ci dovrebbe essere maxTit della funzione precedente...ma non me lo recupera!!!