Viewing By Entry / Main
August 5, 2007

Flex 2 and modified CairngormStore

A couple of things happened in trying to get CaingormStore (the modified version that doesn't require a database) to work. Following is the sequence that did work with the tweaks needed:

1) Download Cairngorm source -- this should be finable on the web. I'm using the source as I want to be able to look at the underlying code instead of just using the compiled (SWC) version.

2) Download the modified CairngormStore from:

http://ntier.wordpress.com/modcairngormstore/

3) In FlexBuilder 2 create a new Flex project.

4) Do File->Import and point to the directory holding the Cairngorm source.

5) Do File->Import and pull in the unzipped CairngormStore files.

6) Open up the file com.adobe.samples.store.business.Services.mxml and change:

xmlns:cairngorm="http://www.adobe.com/2006/cairngorm" to xmlns:cairngorm="com.adobe.cairngorm.business.*"

7) In FB2, click the drop-down arrow by the Run button and select "Run..." In the interface that comes up, make sure you have the following settings:

Project: Set to name of your project Application file: Change to "Main.mxml"

Also, verify that the "Run" property is set to the right URL.

8) Select the project in the Eclipse Navigator (if not already selected) and do: Project->Properties.

Go to the "Flex Build Path" screen and in the "Source path" tab, click "Add Folder..." and add the following:

local\{locale}

and click OK.

9) In the "Flex Compiler" tab, make sure that "Additional compiler arguments" containg:

-locale en_US

With the above done, you should be able to run the CairngormStore without a database backend.

Comments

Comments are not allowed for this entry.