Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/02/2009, 13:54
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Llamar img y getURL, AS

mira crea un fla nuevo y crea tu texto y tu boton , pero al boton le pones como nombre de instancia boton_btn

ahora en un frame vacio pones esto:

Código:
var obj_xml:XML = new XML();
var liga_a_google:String;
obj_xml.ignoreWhite = true;
boton_btn._visible = false;
obj_xml.onLoad = function(exito) {

	if (exito) {
		boton_btn._visible = true;
		liga_a_google = String(obj_xml.firstChild.childNodes[0].firstChild.nodeValue);
		varURL1.text = obj_xml.firstChild.childNodes[0].firstChild.nodeValue;

	} else {
		varURL1.text = "Error";
	}
};

function cargarXML() {

	obj_xml.load("btn1.xml");
}

cargarXML();


boton_btn.onRelease = function() {

	getURL(liga_a_google, "_blank");

	
};
checa los cambios que hice.


trata de no usar en los botones:

Código:
on (release) {
	getURL(varURL1);
}
sino asi:

Código:
boton_btn.onRelease = function() {

	getURL(liga_a_google, "_blank");

	
};
para que programes todo en un frame y no sobre los botones.