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

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Getting Started / Re: Starting with PureMVC on: July 11, 2008, 09:02:03
Right I see, so the commands StartupCommand and so on are only examples and not mandatory right? Would I create a command, let's say Init within a class called Init and call that using the registerCommand? And I assume Init will begin to load everything? So then what's the facade connection?
2  Announcements and General Discussion / Getting Started / Starting with PureMVC on: July 10, 2008, 04:17:19
Hey all,

I'm new to AS3 MVC, but not the MVC concept or AS3. I've had a look at the best practice guide and set up my app:

Base.fla
Base.as (Base.fla's document class)
com
> domain
>> app
>>> ApplicationFacade.as
>>> models
>>> views
>>> controllers

That's just a basic idea of the current directory structure.

So looking good? Cool, I do a quick launch to test the movie in the Flash IDE and it returns errors regarding the code I copied from the best practices guide on ApplicationFacade.as. The errors are to do with the 'registerCommand()' functions where StartupCommand, LoginCommand and GetPresCommand don't exists.

So should then? If not, what should be inside them and where should I create them?
Pages: [1]