Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/08/2010, 10:10
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: Error al poner enlace a un boton (AS3)

Hola Laika:
Tu código escríbelo así:
Código actionscript:
Ver original
  1. miboton.addEventListener(MouseEvent.CLICK, callLink);
  2. function callLink(event:MouseEvent):void {
  3.     var url:String="http://www.google.com.pe/";
  4.     var request:URLRequest=new URLRequest(url);
  5.     try {
  6.         navigateToURL(request, '_blank');// second argument is target
  7.     } catch (e:Error) {
  8.         trace("Error occurred!");
  9.     }
  10. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/