Ciao Ragazzi,
sto impazzendo dietro un problema e non riesco a capire da cosa dipende, cerco di spiegarmi: da un file txt estraggo dei dati che sono ordinati in questo modo:
Faccio il parsing all'interno della mia sintassi actionscript in questo modo:codice:&test1=mio testo &test2=mio testo &test3=mio testo
Fin qui tutto ok, se faccio il trace di una delle variabili non ottengo nessun errore e tutte sembrano essere valorizzate. Successivamente, invece, quando cerco di inserire il valore all'interno del mio movie in questo modo:codice:myText = new LoadVars(); myText.onLoad = function(success) { if (success) { _loc3.titel1 = this.test1; _loc3.titel2 = this.test2; _loc3.titel3 = this.test3; trace(_loc3.titel1); } else { trace("errore"); } }; myText.load("premessanl.txt");
A video leggo Undefinied ... qualcuno sa darmi una info? Dove Sbaglio?codice:tekstcont_mc = tempRoot.attachMovie("tekstcont1ID", "tekstcontmc", tempRoot.getNextHighestDepth()); tekstcont_mc.titel_txt.autoSize = true; tekstcont_mc.titel_txt.htmlText = _loc3.titel1;
![]()
Questa volta sento che mi sto giocando gli ultimi neuroni disponibili ... mi appello alla vostra bontà!
![]()
P.S.
Per ulteriore chiarezza vi invio tutta la funzione
codice:function zetRest() { myText = new LoadVars(); myText.onLoad = function(success) { if (success) { _loc3.titel1 = this.test1; _loc3.titel2 = this.test2; _loc3.titel3 = this.test3; trace(_loc3.titel1); } else { trace("errore"); } }; myText.load("premessanl.txt"); tekstcont_mc = tempRoot.attachMovie("tekstcont1ID", "tekstcontmc", tempRoot.getNextHighestDepth()); tekstcont_mc.titel_txt.autoSize = true; tekstcont_mc.titel_txt.htmlText = _loc3.titel1; tekstcont_mc.tekst_mc.tekst_txt._y = posY; tekstcont_mc.tekst_mc.tekst_txt.autoSize = true; tekstcont_mc.tekst_mc.tekst_txt.htmlText = _loc3.titel2; tekstcont_mc.tekst_mc.tekst_txt.styleSheet = _global.css_obj; tekstcont_mc.tekst_mc.tekst_txt._width = tekstcont_mc.mask_mc._width; tekstcont_mc._x = 585; tekstcont_mc._y = 44; if (tekstcont_mc.tekst_mc._height < tekstcont_mc.mask_mc._height) { tekstcont_mc.dragger_mc._visible = tekstcont_mc.scroller_mc._visible = false; } else { Root.vscrolling(tekstcont_mc.tekst_mc, tekstcont_mc.mask_mc, tekstcont_mc.scroller_mc, tekstcont_mc.dragger_mc); } // end else if } // End of the function

Rispondi quotando
