Comunidad de diseño web y desarrollo en internet online

Ayuda Flex URL

Citar            
MensajeEscrito el 10 Abr 2010 08:37 am
Hola a todos
E estado buscando formas para esconder URLRequest:

El codigo que tengo es un PANEL donde tengo que ingresar USUARIO y la CONTRASEÑA , de acuerdo al usuario y contraseña, entra a su respectivo APLICACION "CASE", en cual abre una aplicacion por ejemplo:

http://localhost:8080/formulario/aplicacion1.html.

Lo que yo no quiero , es que no aparesca esa larga direccion en la pagina.

e buscado formas de como abrir Application a otra Application, y la unica forma que e encontrado es con URLRequest.

ALGUIEN TIENE OTRA FORMA PARA LLAMAR Application a otra Application?¿¿?¿? .


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" xmlns:Comp="Componentes.*" layout="absolute" borderColor="#FCFDFE" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FF9600, #FF9600]" xmlns:ns1="Modulos.*" cornerRadius="20" alpha="1.0" borderStyle="solid" themeColor="#D07A00" borderThickness="14" color="#000000">
<mx:Script>
<![CDATA[
import flash.net.URLRequest;
import flash.net.navigateToURL;
import mx.controls.Alert;


import mx.rpc.events.ResultEvent;

public function resultado(event:ResultEvent):void{
var s:String=String(event.result);
switch(s){

case "aplicacion0":

var url:URLRequest=new URLRequest("http://[localhost:8080]/formulario/aplicacion1.html");
navigateToURL(url,'_self');

break;

case "no":
Alert.show("Los datos ingresados no son correctos");
tusuario.text="";
tpass.text="";
break;
}
}
]]>
</mx:Script>
<!--<Comp:login id="log" x="370" y="194" visible="false"/>-->
<mx:RemoteObject id="RO" destination="dest" result="resultado(event)"/>
<mx:Panel x="455.5" id="panelcontrase" width="289" height="174" layout="absolute" title="Login" borderColor="#613901" color="#FFFFFF" cornerRadius="20" alpha="1.0" backgroundAlpha="1.0" backgroundColor="#FFFFFF" top="246">
<mx:Label x="32" y="25" text="Usuario" color="#000000" fontWeight="bold"/>
<mx:Label x="10" y="67" text="Contraseña" color="#000000" fontWeight="bold"/>
<mx:TextInput x="88" y="23" id="tusuario" color="#000000"/>
<mx:TextInput x="88" y="65" id="tpass" displayAsPassword="true" color="#000000"/>
<mx:Button x="98.5" y="109" label="ENTRAR" id="baceptar" click="RO.verificarDatosUsuarios(tusuario.text,tpass.text)" fillAlphas="[1.0, 1.0]" fillColors="[#FF9600, #FF9600]" color="#000000" borderColor="#FFFFFF"/>

</mx:Panel>
</mx:Application>


[b]
GRACIAS A TODOS POR SU TIEMPO :lol:
[/b]

Por shinodax

41 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Abr 2010 12:40 pm
Si no quires que se vea la url, abre una ventana del navegador con javascript window.open te permite personalizar la ventana. Para llamar a una función de javascript puedes usar ExternalInterface o incluso el mismo URLRequest, solo que como argumento le pasas "javascript:funcion"
La función de javascript la tienes que poner en el HTML contenedor

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 10 Abr 2010 04:50 pm
Gracias por tu tiempo ,,..

Pero me podrias ayudar con algun ajemplo si no es mucha la moolestia,.

Gracias

Por shinodax

41 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Abr 2010 05:51 pm
ERES UN MAESTRO SOLISARg

Gracias Me Disto el Medio EMpuje MUCHAS GRACIAS.

SoluCION:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" xmlns:Comp="Componentes.*" layout="absolute" borderColor="#FCFDFE" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FF9600, #FF9600]" xmlns:ns1="Modulos.*" cornerRadius="20" alpha="1.0" borderStyle="solid" themeColor="#D07A00" borderThickness="14" color="#000000">
<mx:Script>
<![CDATA[
import flash.net.URLRequest;
import flash.net.navigateToURL;
import mx.controls.Alert;


import mx.rpc.events.ResultEvent;

public function resultado(event:ResultEvent):void{
var s:String=String(event.result);
switch(s){

case "aplicacion0":

var url1:String = new String();
url1 = "http://localhost:8080/formulario/aplicacion.html";
ExternalInterface.call("window.open", url1, "_blank", "");

break;

case "no":
Alert.show("Los datos ingresados no son correctos");
tusuario.text="";
tpass.text="";
break;
}
}
]]>
</mx:Script>
<!--<Comp:login id="log" x="370" y="194" visible="false"/>-->
<mx:RemoteObject id="RO" destination="dest" result="resultado(event)"/>
<mx:Panel x="455.5" id="panelcontrase" width="289" height="174" layout="absolute" title="Login" borderColor="#613901" color="#FFFFFF" cornerRadius="20" alpha="1.0" backgroundAlpha="1.0" backgroundColor="#FFFFFF" top="246">
<mx:Label x="32" y="25" text="Usuario" color="#000000" fontWeight="bold"/>
<mx:Label x="10" y="67" text="Contraseña" color="#000000" fontWeight="bold"/>
<mx:TextInput x="88" y="23" id="tusuario" color="#000000"/>
<mx:TextInput x="88" y="65" id="tpass" displayAsPassword="true" color="#000000"/>
<mx:Button x="98.5" y="109" label="ENTRAR" id="baceptar" click="RO.verificarDatosUsuarios(tusuario.text,tpass.text)" fillAlphas="[1.0, 1.0]" fillColors="[#FF9600, #FF9600]" color="#000000" borderColor="#FFFFFF"/>

</mx:Panel>
</mx:Application>


GRaCIASSSSSSS xD

Por shinodax

41 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Abr 2010 06:03 pm
OTRA CONSULTA

ExternalInterface.call("window.open", url1, "_blank", "");

Al momento de Abrir el OTRA ventana me sale cortado, no me muestra completo mi aplicacion, como puedo hacer para que me muestre el 100% de la aplicacion.

GRACIAS

Por shinodax

41 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Abr 2010 07:44 pm
Solucionadoo

ExternalInterface.call("window.open", url1, "_blank", "width=1000,height=1000");

GRaCIAS A TODO

Por shinodax

41 de clabLevel



 

firefox
Citar            
MensajeEscrito el 12 Abr 2010 02:44 pm
Me alegra shinodax que hayas investigado y resuelto a partir de un par de pistas, eso quiere decir que estaba dentro de tus posibilidades poder resolverlo, cuando no es así muchas veces el hilo se queda en un corta y pega.

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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