Comunidad de diseño web y desarrollo en internet online

Problema con module

Citar            
MensajeEscrito el 27 Abr 2009 10:56 am
Hola buenas, dice el titulo del post que tengo un problema con los módulos y sus comunicaciones. El problema que me da es:

1046: No se encontró el tipo o no es una constante en tiempo de compilación:module.


Código :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
   xmlns:modules="*"   layout="absolute" initialize="setModuleText()">
<mx:Script>
   <![CDATA[
      import mx.controls.Alert;
      public function setModuleText():void
      {
         var mod:IModule = login.child as IModule;
         mod.setTexto("prueba");
      }
   ]]>
</mx:Script>
   <mx:TitleWindow x="10" y="10" width="374" height="360" layout="absolute" title="Carga de login">
      <modules:module id="modulo1"/>       
      <mx:ModuleLoader verticalCenter="-61" horizontalCenter="-23" url="prueba.swf" width="308" 
         height="199" id="login"/>
   </mx:TitleWindow>
</mx:Application>


Un Saludo y gracias.

Por Asur

10 de clabLevel



 

msie7
Citar            
MensajeEscrito el 27 Abr 2009 12:54 pm
¿Tienes un componente llamado module.mxml en el directorio raíz?

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 28 Abr 2009 08:18 am
:O dios que fallo más tonto xD, bueno gracias por tu ayuda.

Por Asur

10 de clabLevel



 

msie7

 

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