Cairngorm and ARP are very similar because they used to be one and the same (or 
something like that - don't know the details)

If you install the old ARP installer
http://osflash.org/downloads/arp/ARP_2.02_Setup.exe
it comes with a Sample app (PizzaService) which is a good start.

Apparently it's also available on subversion:
http://svn1.cvsdude.com/osflash/arp/trunk/samples/PizzaService/

There's a few extensions to ARP, more on them here:
http://osflash.org/projects/arp/arp_extensions
And you can find the sources here:
http://svn1.cvsdude.com/osflash/arp/labs/

Other links:
http://osflash.org/projects/arp

One of the things that has been discussed on the ARP mailing list quite alot is 
the way that ARP issues commands and the fact that a 
Command is loosely coupled to a View.

Taking the PizzaService as an example, there's an OrderForm and an 
OrderPizzaCommand.
The OrderForm dispatches an event (orderPizza) which (through the Controller) 
executes the OrderPizzaCommand. The OrderPizzaCommand 
has a reference (viewRef) to the OrderForm and calls a method (getOrders()) on 
the OrderForm. So that's where it gets a bit hairy.. 
a Command calling a method on a View to retrieve the necessary data.

Solutions are to either pass the required data to the command or go through a 
Model (Singleton). The OrderForm stores the required 
data in the Model and the OrderPizzaCommand retrieves it there.

As for designing an ARP application, I found it helps to have each "Form" have 
a background movieclip, the same size as the stage, 
which is then hidden in the "onLoad" method. This helps when you need to layout 
and position child elements through actionscript as 
well (top left = 0,0)

You can always join the ARP mailing list if you have more questions:
http://ariaware.com/mailman/listinfo/arp_ariaware.com

regards,
Muzak

----- Original Message ----- 
From: "Jordan Snyder" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Monday, April 23, 2007 11:06 PM
Subject: Re: [Flashcoders] Basic "class for swf"-question


> Muzak,
>
> I have used Cairngorm for Flex 2 applications and I see that ARP is
> very very similar to it, but before I get myself and my other
> developer involved with ARP (on a non-forms based app), is there
> anything tricky I need to know about developing ARP apps without
> Forms, since their documentation focuses on Form development?
>
> Any help or links are greatly appreciated!
>
> Cheers!
>


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to