tambien pense nen un componente uiscroll pero no sale como lo puedo hacer . el buscador anda perfectamente.
aqui esta el actionscript :
Código:
como soluciono? // declaración de variables a utilizar
inicioX = 0;
inicioY = 0;
separacionVertical = 100;
// Adjuntar un contenido al Componente
miScroll2.contentPath="ss1";
// Asigno a una variable, la ruta completa al contenido del Componente
var miCont2=miScroll2.content;
//enviar a php
enviar = function () {
form_lv = new LoadVars();
form_lv.tipo = tipo.text;
form_lv.ubicacion = ubicacion.text;
form_lv.operacion = operacion.text;
form_lv.ambientes = ambientes.text;
form_lv.preciomin = preciomin.text;
form_lv.preciomax = preciomax.text;
form_lv.sendAndLoad("http://localhost/inmo1/buscafla1.php", form_lv, "POST");
//recoge los datos que envio php
form_lv.onLoad = function() {
if (this.output == "ok") {
this.total = parseInt(this.total);
attachMovie("ss", "ss", 200, {_x:-200, _y:30});
for (var n = 1; n<this.total+1; n++) {
var nom =ss.attachMovie("ss1", "ss1"+n, n+1, {_x:inicioX, _y:inicioY+(separacionVertical*(n-1))});
nom.tipo_1.text = this["tipo"+n];
nom.id_1.text = this["id"+n];
nom.ambientes_1.text = this["ambientes"+n]+" Amb";
nom.descripcion_1.text = this["descripcion"+n];
nom.precio_1.text = "$"+this["precio"+n];
nom.ubicacion_1.text = this["ubicacion"+n];
var ims =this["imagen1"+n]
nom.createEmptyMovieClip("fotosearch",10)
nom.fotosearch._x=-180
nom.fotosearch._y=-225
nom.fotosearch.loadMovie("http://localhost/inmo1/"+ims)
nom.id=this["id"+n];
nom.onRelease = function (){
obtenerDetalle(this.id);
}
}
} else {
msg.text= this.msg;
}
};
};
enviar_btn.onRelease = enviar;
// función que extrae los detalles del usuario cuyo id se pasa por parámetro
obtenerDetalle=function(id){
var detalle_usuario=new LoadVars();
detalle_usuario.id=id;
detalle_usuario.onLoad=mostrarDetalle;
detalle_usuario.sendAndLoad("http://localhost/inmo1/envia_comp.php",detalle_usuario,"POST");
}
// función que mostrará los detalles de cada usuario en el campo de texto de la derecha
mostrarDetalle=function(exito){
if (exito){
if (this.output=="ok"){
attachMovie("contenedor","contenedor",300,{_x:-200, _y:-150});
contenedor.id.text=this.id;
contenedor.superficie.text=this.superficie;
contenedor.ubicacion.text=this.ubicacion;
contenedor.ambientes.text=this.ambientes;
contenedor.descripcion.text=this.descripcion;
contenedor.precio.text=this.precio;
var img =this["imagen2"];
contenedor.createEmptyMovieClip("foto1",10);
contenedor.foto1._x=-128;
contenedor.foto1._y=0;
contenedor.foto1.loadMovie("http://localhost/inmo1/"+img);
} else {
contenedor.detalles.htmlText="puta madre: <b>"+this.msg+"</b>";
}
} else {
contenedor.detalles.htmlText="Error al cargar los datos del usuario";
}
}

