Cairngorm Controller


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /** *******************************************************************
  2. * MySnippets
  3. * Free for use
  4. *
  5. * @author Jonnie Spratley
  6. * @contact [email protected]
  7. ******************************************************************* */
  8. package
  9. {
  10. import com.adobe.cairngorm.control.FrontController;
  11.  
  12. /**
  13. * The Front Controller is a central place where all the commands are mapped to
  14. * the relevant events. Once an event is dispatched, the Front Controller finds
  15. * the corresponding command to execute.
  16. */
  17. public final class Controller extends FrontController
  18. {
  19. public function Controller()
  20. {
  21. this.initialize();
  22. }
  23.  
  24. private function initialize() : void
  25. {
  26. //Map events.WHAT TYPE OF EVENT, to COMMAND
  27.  
  28.  
  29. //todo: add commands
  30. }
  31. }
  32. }
  33.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.