sera,
Mi chiedevo come avere testo in dissolvenza in entrata in un MC!
es.
testo che proviene da nodoXML
oppure da databaseMySql-PHP
è una cosa fattibile solo con MX2004 ?
o anche con MX?
sempre grazie a tutti
![]()
sera,
Mi chiedevo come avere testo in dissolvenza in entrata in un MC!
es.
testo che proviene da nodoXML
oppure da databaseMySql-PHP
è una cosa fattibile solo con MX2004 ?
o anche con MX?
sempre grazie a tutti
![]()
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
Si può avere anche con flash5, ma qual'è il punto in cui "ti pianti"?
in che senso... pianti?
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
Cosa non riesci a fare? Riesci a caricare il testo esterno?
certo che si..![]()
carico qualsiasi cosa..
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
Quindi, se usi l'xml, usi l'evento onLoad per riempire il campo di testo, giusto? E allora:
codice:data_xml = new XML(); data_xml.ignoreWhite = true; data_xml.path = this; data_xml.onLoad = function(ok) { if(ok){ this.path.testo_txt._alpha = 0; this.path.testo_txt.text = il_tuo_nodo; this.path.intervallo = setInterval(this.path, "fadeIn", this.path.testo_txt, 200); } else { } }; function fadeIn(target) { if(target._alpha < 100){ target._alpha += 5; } else { clearInterval(this.intervallo); } } data_xml.load("file.xml");
ho visto entrambe le cose, però ora non riesco a fare verifica..
non appena, certo mi faccio sentire
grazie di tutto,
che dire.. grazie Nega
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
:bubu: echm..
posto il punto in cui mi trovo: e non dissolve..
:quipy:codice:function displayXML() { if(_alpha < 100){ _alpha += 5; } else { clearInterval(this.intervallo); } } XML_var = new XML(); // url XML_var.load("http://www.webbeloz.altervista.org/dataxml/flash.xml"); // dopo che xml è rilevato, funzione display XML_var.onLoad = displayXML; // display in txt caricato txt = "Loading Data_"; function displayXML() { mainTag = new XML; elementTag = new XML; articleList = new Array; elementList = new Array; mainTag = this.firstChild.nextSibling; articleList = mainTag.childNodes; txt = ""; //loop xml for(i=0;i<=articleList.length;i++) {//start elementList = articleList[i].childNodes; //start for(j=0;j<=elementList.length;j++) {//start elementTag = elementList[j]; head = elementTag.firstChild.nodeValue; if(elementTag.nodeName.toLowerCase() == "node1") {txt += head +" ";} if(elementTag.nodeName.toLowerCase() == "node2") {txt += head +" ";} if(elementTag.nodeName.toLowerCase() == "node3") {txt += head +" ";} if(elementTag.nodeName.toLowerCase() == "node4") {txt += head +" ";} if(elementTag.nodeName.toLowerCase() == "node5") {txt += head +" ";} }//finito }//finish }
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community
Un attimo, la tua funzione per il fadeout è diversa dalla mia, e nella mia prevedo il fade di un movieclip alla volta..
infatti io ho solo il campo testo con variabile txt
Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
Mechanics & Expert Tuning Fix Z3 Roadster Community