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

problemas con asfunction y loadmovie !!

Estas en el tema de problemas con asfunction y loadmovie !! en el foro de Flash y Actionscript en Foros del Web. Hola Chicos tengo un pequeño problema ... Estoy haciendo un buscador en flash y xml y me queda un pequeño fleco por pulir; en el ...
  #1 (permalink)  
Antiguo 18/04/2008, 02:53
 
Fecha de Ingreso: abril-2008
Mensajes: 2
Antigüedad: 16 años
Puntos: 0
problemas con asfunction y loadmovie !!

Hola Chicos tengo un pequeño problema ...

Estoy haciendo un buscador en flash y xml y me queda un pequeño fleco por pulir;

en el primer fotograma tengo:
myXML = new XML();
myXML.onLoad = function() {
trace("xml hace been loaded")
play()
};
myXML.load("productos1.xml");

stop();


y en el segundo:

import com.xfactorstudio.xml.xpath.*;
laoxml.text=myXML
laobtn.onPress = function() {
var productos = XPath.selectNodes(myXML, "/productos/producto[contains(@artist ,'"+laoinput.text+"') and contains(@localizacion ,'"+laoinput1.text+"') and contains(@fecha ,'"+laoinput2.text+"') and contains(@autoria ,'"+laoinput3.text+"') and contains(@estilo ,'"+laoinput4.text+"') and contains(@descripcion ,'"+laoinput5.text+"') and contains(@observaciones ,'"+laoinput6.text+"')]");

laotxt.text = '<b>Frase buscada: </b>'+laoinput.text;
for (i=0; i<productos.length; i++) {
var tmpXML = new XML(productos[i]);
var tmptitulo = tmpXML.firstChild.attributes.artist ;
var tmptitulo1 = tmpXML.firstChild.attributes.fecha ;
var tmptitulo2 = tmpXML.firstChild.attributes.estilo ;
var ver = "<a href='asfunction:loadMovie," + tmpXML.firstChild.attributes.url + "'><font>ver ficha</font></a>" ;
var tmptexto = tmpXML.firstChild.firstChild.nodeValue;
laotxt.text += '<li><b>'+tmptitulo+': (</b>'+tmptitulo1+')</b>_'+ver+'_</li> ';
}
};
stop()



Todo me va bien, el problema que tengo es que quiero colocar el loadmovie en otro nivel y no sé cómo se hace. He lido cosas pero ninguna me funciona.



Gracias por adelantado majetes !!
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 01:16.