Add the following code to your controller
class LoginController extends com.adobe.cairngorm.control.FrontController
public function LoginController()
public function initialiseCommands() : void
addCommand( LoginEvent.EVENT_LOGIN, LoginCommand );
addCommand( LogoutEvent.EVENT_LOGOUT, LogoutCommand );
Refer the below link.
Its not to clear but have you implemented the ICommand interface when creating your FrontController? If you have that's not what the ICommand interface is for, its o be implemented when creating your command classes.
THe David Tucker site is really good has a video tutorial on working with Cairngorm, which is a great starting place.
No, he's using the controller right, see this link:
This is what I prefer for learning Cairngorm, you can see the architecture and view the code behind each piece by clicking on the icons, very easy to understand and follow.
Thanks for your answers.
I find my error. I didn't understand that I have to leave the event:CairngormEvent in my execute function of my commands and I put event which extends af CairngormEvent which is not allowed by Cairngorm.
Thank you again.