Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/07/2004, 06:46
jmcj
 
Fecha de Ingreso: diciembre-2003
Mensajes: 77
Antigüedad: 20 años, 4 meses
Puntos: 0
Ayuda con este codigo

Hola a todos, necesito ayuda urgente , me estoy volviendo loco porque no entiendo mucho del actionscript del flash, Tengo un texto dinamico de nombre caption, y en el primer fotograma tengo el codigo:

function showjpg(paramString) {
// get the individual parameters:
// params[0] = picture file name
// params[1] = caption
var params = paramString.split("#");
picHolder.loadMovie(params[0]);
caption.text = unescape(params[1]);
}
function showContent() {
var i;
content.htmlText = "";
for (i=0; i<this.n; i++) {
// if (this["picFile"+i] != "") {

content.htmlText += "<b>"+this["firstName"+i]+" "+"</b>"+"<a href='asfunction:showjpg,"+this["picFile"+i]+"#"+escape(this["caption"+i])+"'>&nbsp;&nbsp;(<font color='#0000cc'>contingut</font>)</a><br>";
// } else {
// content.htmlText += "<b>" + this["firstName"+i] + " " + this["lastName"+i] + "</b><br>";
// }
content.htmlText += "&nbsp;&nbsp;"+this["phone"+i]+"<br>";
// content.htmlText += "&nbsp;&nbsp;<a href='mailto:" + this["email"+i] + "'>" + this["email"+i] + "</a><br><br>";
}
}
// Create new load vars object c for data transfer
var c = new LoadVars();
c.onLoad = showContent;
// define content and actions for each tab
for (var i = 65; i<=67; i++) {
// this["tab"+chr(i)].letter.text = chr(i);
// when this tab is clicked
this["tab"+chr(i)].onRelease = function() {
// can't use chr(i) here -- must use mc name
c.thisLetter = this._name.substr(3, 1);
content.htmlText = "Carregant base de dades ";
// scope of this function is main timeline so can refer to c directly
c.sendAndLoad("flashmx_dbPassReturn.php", c, "POST");
};
}
stop();

Lo que hace es leer variables de un .php, lo que pasa es que en ese texto dinámico (caption) solamente se me ve las 2 primeras líneas, cerca de 72 carácteres, y no se que hacer para que me salgan todas las letras que hay en relidad en ese campo (caption) en la base de datos.

Muchas gracias