Ho un problemaccio![]()
System.useCodepage = true;
speed = 10;
distanza = 114;
text = new LoadVars();
text.load("news.txt");
text.onLoad = function(ok) {
if (ok) {
ar = new Array();
ar = text.news.split("|");
//trace(ar);
//trace(ar.length);
crea();
}
};
function crea() {
this.onEnterFrame = function() {
posy10 = 0;
this.masked10._y -= speed;
this.masked11._y -= speed;
if (this.masked11._y < -posy10) {
this.masked10._y = -posy10;
this.masked11._y = this.masked11._height + -posy10;
}
if (masked10.hitTest(_root._xmouse, _root._ymouse, true) | masked11.hitTest(_root._xmouse, _root._ymouse, true)) {
speed = 0;
this.signal = true;
} else if (this.signal != false) {
speed = 10;
this.signal = false;
}
};
for (j = 10; j < 12; j++) {
masked = this.createEmptyMovieClip("masked" + j, j);
totPosMC = this["masked" + j]._y = i * distanza;
this.mask.mc.duplicateMovieClip("mc" + j, j + 100);
trace(this.mask["mc" + j]);
for (i = 0; i < ar.length; i++) {
this.mask.mc._alpha = 100;
masked.createTextField("pic" + i, i, 0, 0, 82, 114);
trace(masked["pic" + i]);
masked["pic" + i]._y = i * distanza;
masked["pic" + i].embedFonts = true;
masked["pic" + i].html = true;
masked["pic" + i].htmlText = ar[i];
masked["pic" + i].border = true;
masked["pic" + i].borderColor = (0xff0000);
masked["pic" + i].wordWrap = true;
masked["pic" + i].multiline = true;
masked["pic" + i].selectable = false;
masked["pic" + i].background = true;
masked["pic" + i].backgroundColor = (0x000000);
}
masked.setMask(this.mask["mc" + j]);
}
updateAfterEvent();
}
tutto questo benedetto codice, mi crea i campi di testo dinamico che voglio e in più due mc che servono per mascherare altrettante mc che contengono i campi di testo! Il tutto riesce molto bene, ma! C'è un ma!! Nn riesco a leggere il testo!!!
Se imposto la proprietà embedFonts = false, si legge il testo, ma nn si mascherano le mc!!! Cosa c'è da fare che io nn so?!?!?
Grazie

, ma! C'è un ma!! Nn riesco a leggere il testo!!!
Rispondi quotando
Era proprio quello che nn sapevo!
VVoVe:
