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 2 3 [4]
46  Announcements and General Discussion / Architecture / Using a simple shell swf loader in a puremvc app on: July 21, 2009, 08:41:30
Can someone calrify how I would use a simple shell loader as outlined in Lee Brimelows tutorial
http://www.gotoandlearn.com/play?id=85

As I understand it, everything in a PureMVC app starts with the startup command, called via your main document class via application facade.

But using Lee Brimelows shell loader technique requires at a minimum 2 swfs, your preloader shell, and the main application swf you are loading.

Where would the following code go
ApplicationFacade.getInstance().startup( this );

in your preloader 'shell' swf (only called after your main swf has loaded),
OR
in your main application swf?
47  PureMVC Manifold / Standard Version / Q;Correspondence of remote proxies to mediators on: July 20, 2009, 07:31:17
I understand there are several 'right ways' to organize your classes in a PureMVC, but I'm looking for general best practices to help when initially architecting an application.
For instance, I know I will need at least 3 different remote proxies for the app I am building. A UserProxy for registration and login, an UploadImageProxy for initial image upload(from the desktop), and a CreateImageProxy to save the modified image data to the remote server.
Does this imply I will need corresponding mediators, or is the mapping of proxies to mediators arbitrary? ie in the above example I was considering the following
- a 'header' mediator that houses global items and listens to 'login' events in a corresponding 'header' view, and then retrieves and interacts with the UserProxy.
- a CreateImage mediator which interacts with (directly or via commands) BOTH the CreateImageProxy and the UserProxy since this CreateImage mediator also contains- a registration form view component.

If I were to add a publicly viewable gallery view component, would that imply a corresponding GalleryProxy(to retrieve the images) as well as a corresponding GalleryMediator?
48  Announcements and General Discussion / Architecture / Q: How much logic should remain in view components?? on: July 20, 2009, 03:25:36
Hi
I'm trying to keep things as simple as possible for my first PureMVC application and would appreciate any input.
I understand the need to keep the view components as simple as possible but am confused as to when you should refactor the logic out of the view and into one of the other core PureMVC actors.

A simple example
Arrow buttons on the stage that, when clicked, simply moves an image in the corresponding direction....no change to the application logic, simply updating the view.

Ok, now instead of arrow buttons, we have a scrollbar that when scrolled, changes the opacity, saturation, rotation value, etc of the image.

What core PureMVC actors would be required and what would there repsonsiblities be?
I've read all the best practice documents and I can still see several ways of accomplishing the above....

For instance in the 'minmalist example'
http://www.as3dp.com/2007/12/27/minimalist-mvc-example-using-the-puremvc-framework/
it seems like overkill to me to have a seprate proxy just for keypresses...am I wrong?


49  PureMVC Manifold / Standard Version / Distinction between business vs domain logic on: July 14, 2009, 03:30:43
Can someone give a few examples of typical 'business' vs 'domain' logic?
Not quite clear on this distinction although I understand that best practice is to keep all domain logic in the model-proxies and business logic in the controller-commands.
50  Announcements and General Discussion / Architecture / Q:Need help in architecting a non Flex application on: July 14, 2009, 03:26:53
I am building a Flash AS3 application comprised of three main parts or sections.

The first is an application that allows users to upload and modify images, and then submit-save them to a server after they have registered.

The 2nd is a publicly viewable gallery of images from all users.(linked to from the home page of the 1st section above)

The 3rd is a private admin tool, which a user access after logging in.(they must already have registered-submitted a photo). This tool will simply allow a user to changer their email password as well as delete any images they have uploaded.

I am comfortable both with standard MVC as well as all the functionality needed for the view components having built something similar in AS2 and Flash 8 a few years back. But I am considering using PureMVC for this project but don't know where to start.

Can someone with actual expereince in building something similar briefly describe what various PureMVC 'actors' I will need for this application and what their roles would be?
I do know I will need to make use of Remote Proxies (and HTTP Service??) for the login and registration forms(and probably for the initial image upload as well)
When does it make sense to use a custom loading utility such as the Startupmanager?

What existing Actionscript -Flash IDE PureMVC project demo(s) or tutorial(s) should I reference?
Especially will need help with image upload- login as well as registration.

Any help or feedback apprecaited!
51  Announcements and General Discussion / Architecture / recommended mappings of commands to proxys on: July 11, 2009, 11:56:11
Right now I have just one  command with a switch case statement handling all my communication from several mediators to one Proxy.

But I am refactoring to have separate proxies for each type of data I am dealing with.

I assume then that my single command must be split up, one command per proxy since each command only knows about one proxy.
Is this a recommended best practive?
52  Announcements and General Discussion / Architecture / Simple site loading 2 or more types of data on: July 11, 2009, 07:18:05
hi
I have a simple site with a navigation bar, visual loader and I need to be able to load 2 types of data, flickr feed data (xml) and swfs.

I have a  data.xml file which contains the urls , either to the local swf content or the flickr api feeds.

Right now, I let the Proxy(model) check the URL to see what type of data is being loaded, and then creates the corresponding loader logic(URLLoader for XML or Loader for SWF's)as well as corresponding handlers.

So I have 2 different notifications the Proxy sends, depending on the type of data loaded.

If I need to load additional types of data(flv, jpg, etc) I would need to check for this in the Proxy, and create additional notifications for each new type of data.

Is this a 'best practice' or is there a better way?
ie I was thinking perhaps that some people would put the logic for determining the type of data to be loaded in the Commands
53  Announcements and General Discussion / General Discussion / 4-things-to-hate-about-puremvc ??? on: October 08, 2008, 11:40:27
Anyone care to comment reply on this post?
http://www.techper.net/2008/10/05/4-things-to-hate-about-puremvc/
54  Announcements and General Discussion / Getting Started / Q: Loading external SWF's, MovieClip Classes and Mediators on: September 15, 2008, 10:04:19
Trying to get a basic demo working.
I'm loading external swf's , each of which is associated with the same MovieClip class.

I have an main Application Mediator and a 'SWFMediator' which is only related to these swf's that are loaded.

Where do I put the actual logic to load these external swf's?


Normally, in my MVC work all state and loading preloading logic is in the model.
Can someone give me a quick example?
55  Announcements and General Discussion / General Discussion / Q:Best Practices and top level mediator on: September 12, 2008, 02:07:39
I noticed in David Knape's demo he makes use of a 'top-level' or application mediator.

Is this a recommended best practice?
http://bumpslide.com/blog/2008/01/16/puremvc_demo_src/
56  Announcements and General Discussion / General Discussion / Updated Courseware?? on: April 09, 2008, 01:11:35
Hi
Does anyone know if the courseware has been updated to work with the latest release?
Pages: 1 2 3 [4]