Hi,
I can't help you with the configuration with Moonshine but I've done some 
tests...

- I compiled the project with asconfigc and it gives an error in UserEvent. It 
must extend from "org.apache.royale.events.Event", you are missing the import.
- I think you have a misconception... in the mvc pattern: the view should not 
be the destination of a call to an event that is directed to the controller. If 
you want the view to act on the result of a call to the controller you will 
have to bind the model and act on its changes.

VIEW --> CONTROLLER --> MODEL --> VIEW

The view is not going to hear from the view dispatcher to the controller.

- In Testing.mxml, when configuring crux you must indicate the "views", you 
have only defined the events:

<crux:CruxConfig
                    eventPackages="code.event.*"/>

- You also have to pay attention and put the correct bead "binding" to each 
container... In the xml Application the correct bead is 
"ApplicationDataBinding" and not "ConainerDataBinding".
- I see that you are relying on the crux basic example,..., maybe you should 
check also todomvc-jewel-crux. It will help you to understand a little better 
the mvc pattern.

Hiedra

De: Mark <m_hartn...@comcast.net>
Enviado el: sábado, 19 de marzo de 2022 15:08
Para: users@royale.apache.org
Asunto: Really need some help here

I’m having a hard time understanding why these eventHandlers will not respond.
I must be missing something very fundamental here.
I’m using Moonshine 3.3.1

I’ve attached the project.
Any help would be greatly appreciated .

This is a very simple app
Heading - button that dispatches a LOGON_REQUESTED event.
All these have a listner with an alert but do not respond.
AppContent  listner for LOGON_REQUESTED event
UserController  listner for LOGON_REQUESTED event
Testing.mxml listner for LOGON_REQUESTED event


Reply via email to