Comunidad de diseño web y desarrollo en internet online

abrir una url desde flex 2

Citar            
MensajeEscrito el 02 Abr 2007 08:09 pm
hola e creado una funcion, y dentro de la funcion quiero hacer que se abra una nueva pagina del navegador con una direccion, por ejemplo que se abriera www.cristalab.com en una pagina nueva. alguien sabria decirme como lo puedo hacer.
gracias

Por Cubel

Claber

139 de clabLevel



Genero:Masculino  

Valencia, España

msie7
Citar            
MensajeEscrito el 02 Abr 2007 08:41 pm
Usando navigateToURL


Código :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
   <mx:Script>
      <![CDATA[
         import flash.net.URLRequest
         public function openSite(event:Event):void
         {
            var url :URLRequest = new URLRequest("http://www.google.com");
            navigateToURL(url, "_blank")
         }
      ]]>
   </mx:Script>
   <mx:Button label="Search" click="openSite(event)"/>
</mx:Application>

Por Tmeister

260 de clabLevel

2 tutoriales

 

firefox
Citar            
MensajeEscrito el 03 Abr 2007 11:13 am
Gracias Tmeister

Por Cubel

Claber

139 de clabLevel



Genero:Masculino  

Valencia, España

msie7

 

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