Comunidad de diseño web y desarrollo en internet online

Carga de modulos (Básico)

Citar            
MensajeEscrito el 17 Jul 2009 10:03 am
Buenas a todos,
Estoy aprendiendo un poco de Flex y me he quedado atrancado, en que quiero cargar un modulo Login.mxml sobre un aplicattion principal-mxml y no me lo carga a ver si le podeis echar un ojo

principal.mxml

Código :

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]"  xmlns:local="*">
<mx:ModuleLoader url="Login.swf"/>
</mx:Application>


Login.mxml

Código :

<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="600" height="600">
   
   <mx:Panel id="panel" width="337" height="243" layout="absolute" x="10" y="10" title="Formolario Logon" borderColor="#F58807">
      <mx:Label text="User" enabled="true" horizontalCenter="-108" verticalCenter="-51"/>
      <mx:Label x="36" y="95" text="Password" enabled="true"/>
      <mx:TextInput x="121" y="40" id="user"/>
      <mx:TextInput x="121" y="93" id="pass"/>
      <mx:Button x="68" y="152" label="Aceptar" click="logon()"/>
      <mx:Button x="189" y="152" label="Cancelar" click="reset()"/>
      <mx:Label x="57" y="126" width="191" id="lol" enabled="true"/>
         
   </mx:Panel>
</mx:Module>


Gracias!

Por sito1982

3 de clabLevel



 

firefox
Citar            
MensajeEscrito el 17 Jul 2009 01:42 pm
Deberias tener Login.swf en la misma ubicacion donde tienes la aplicacion principal, tambien debes intentar cargarlo con la url completa, es decir http://localhost/Login.swf

Por sergestux

49 de clabLevel



Genero:Masculino  

firefox

 

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