Hi all,

I have the following defined in my App.mxml

<crux:CruxConfig
                    
eventPackages="event.common.*,event.usuario.*,event.cliente.*,event.varpedido.*"
                    
viewPackages="view.*,view.cliente.*,view.usuario.*,view.varpedido.*"/>
            </crux:config>

But I am getting this error when running the app:

Uncaught Error: Could not get a reference to class for 
CommonEvent.EVENT_CARGAR_CONFIGURACIONES. Did you specify its package in 
cruxConfig::eventPackages?

Events for event.usuario.*,event.cliente.* are working fine. What could I be 
missing?


The Event class is:

package event.common
{
        import org.apache.royale.events.Event;
                                                                                
                
                public class CommonEvent extends Event
                {
                        public static const EVENT_CARGAR_CONFIGURACIONES:String 
= "eventCargarConfiguraciones";
                        public static const 
EVENT_CARGAR_PROMOTORES_DED_ELEGADO:String = "eventCargarPromotoresDeDelegado";

                        public var id:Number;
                        public var idDelegado:Number;
        
                        public function CommonEvent( type:String )
                        {
                                super( type, true );
                        }
                }
}

Cheers,

David

Reply via email to