Create a new Controller

You can create a new Controller by either right-clicking in the Flex Navigator view (which is available in the Flex Development and the Flex Debugging perspectives) and selecting New > Cairngorm Controller. Alternatively you can go to File > New > Cairngorm Controller.

  • If a resource in the project was selected when you opened the Cairngorm Controller class wizard it will be pre-set for you. This is also true for the package, if a package was selected it the project it will be pre-set for you in the class wizard.
  • Enter a Class name for the Controller and click Finish.

When a new Controller is created it will have a UUID constant, such as the following:

  • private static const UUID : String = "1422eaac-9ba3-4328-b44d-597f464fa5bb";

Although it is private, it is important that you do not remove it as it it is used by the project properties to associate the Controller with its default settings.

Continue to Create a new Command.