Comunidad de diseño web y desarrollo en internet online

navigateUrl :S

Citar            
MensajeEscrito el 11 Feb 2010 03:25 pm
Tengo un problema con el navigateUrl, yo tengo un boton que tiene que llamar a otra Url y me lo hace cuando lo ejecuto desde Eclipse con el plug-in de Flex, pero cuando cambio de lugar las salidas, ejecuto el boton es como que no hace nada se queda quieto en el mismo html sin hacer nada, he buscado y no se que hacer
Les agrego el codigo:

Código :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#000000, #000000]" width="685" height="585">
   <mx:Image id="fondo" source="../Fondo.jpg" horizontalCenter="-0" verticalCenter="0"/>
   <mx:Script>
      <![CDATA[
         import flash.net.navigateToURL;
                  
         //FUNCIONES DE LOS BOTONES.
         public function comenzarJuego():void{
            navigateToURL(new URLRequest("Avion.html"), "_self");
         } 
         
         public function salir():void{
            navigateToURL(new URLRequest("javascript:window.close()"), "_self");
         }
         ]]>
   </mx:Script>
   <mx:Style source="Boton.css"/>
   <mx:Button x="211.5" y="335" label="Comenzar Juego" click="comenzarJuego();" id="cj"/>
   <mx:Button x="211.5" y="410" label="Instrucciones"/>
   <mx:Button x="211.5" y="483" label="Salir" click="salir();" id="exit"/>

espero que alguien me de una mano porque no se que inventar ya.

Por bascansado

18 de clabLevel



 

firefox
Citar            
MensajeEscrito el 11 Feb 2010 09:36 pm
alguien responda algo por favor, me tiene podrido que no me funcione y no saber porque !

Por bascansado

18 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.