Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: where does my application API go?  (Read 6525 times)
akastar
Newbie
*
Posts: 4


View Profile Email
« 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()?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print