PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: akastar on January 12, 2009, 07:59:46



Title: where does my application API go?
Post by: akastar on January 12, 2009, 07:59:46
Hi, just wondering on the best approach for exposing my command methods to an outside application. For example I have built a self contained application that initalises and draws images inside a sprite, I want anyone to be able to call a method from the flash IDE to manipulate these shapes. Is it best to put these API type of commands inside the facade after the application.startup()?


Title: Re: where does my application API go?
Post by: puremvc on January 12, 2009, 07:00:47
That is certainly one way to do it.

The facade commonly at a minimum, exposes a startup method as a way for an assembled UI to kickstart the PureMVC apparatus. Beyond that, you could add any number of methods to the facade to allow your app to expose an API to its functionality.

-=Cliff>