Foros del Web » Creando para Internet » Flash y Actionscript »

php flash y mysql

Estas en el tema de php flash y mysql en el foro de Flash y Actionscript en Foros del Web. 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 = ...
  #1 (permalink)  
Antiguo 27/01/2003, 23:54
Avatar de mveraa  
Fecha de Ingreso: diciembre-2002
Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 21 años, 3 meses
Puntos: 2
php flash y mysql

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["foto"+i] != "") {
content.htmlText += "<b>"+"MARCA:"+ this["marca"+i]+ "</b><br>";
content.htmltext += "<b>"+"MODELO:"+ + this["modelo"+i] + "</b>" + "<a href='asfunction:showjpg," + this["foto"+i] + "#" + escape(this["comentario"+i]) + "'>&nbsp;&nbsp;(<font color='#0000cc'>foto</font>)</a><br>";
} else {
content.htmlText += "<b>"+"MARCA:"+ this["marca"+i]+ "</b><br>";
content.htmltext += "<b>"+"MODELO:"+ + this["modelo"+i] + "</b>";
}
content.htmlText += "&nbsp;&nbsp;" +"AÑO:"+ this["ano"+i] + "<br>";
content.htmlText += "&nbsp;&nbsp;<a href='mailto:" + "PRECIO:"+ this["valor"+i] + "'>" + "PRECIO:"+this["valor"+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);
bigLetter.text = c.thisLetter;
content.htmlText = "Loading data for " + c.thisLetter;
// scope of this function is main timeline so can refer to c directly
c.sendAndLoad("flashmx_dbPassReturn1.php",c,"POST" );
}
}

stop();

hola este script flashmx le pide al script php que lea una base de datos y luego le envie lo encontrado bueno mi duda es como modificar este para que le envie primero a flash unos datos para despues considerarse en la busqueda sql.

esquema:

php1 envia datos a flash via post

flash los toma los datos de php1 procesa y llama al php2(que hace busqueda en la base de datos, considerando los datos enviados por php1 para hacer la busqueda )

flash muestra los resultados

nota este scritp sirve para mostrar fotos dinamicas usando mysql, para la llamada a las fotos.

gracias de ante mano
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:32.