Cairngorm in Gumbo

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

Cairngorm pretty much just works in Gumbo straight out of the box. Only hiccup I found was that you can't instantiate the services and controller components using mxml tags. Just define them once in the main application using ActionScript and you should be good.

Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FxApplication xmlns="">
  3. <Script>
  4. <![CDATA[
  5. import com.candycoatedsyntax.control.Controller;
  6. import;
  7. import com.candycoatedsyntax.model.ModelLocator;
  9. private var model:ModelLocator = ModelLocator.getInstance();
  10. private var services:Services = new Services();
  11. private var control:Controller = new Controller();
  12. ]]>
  13. </Script>
  14. </FxApplication>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.