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
31  Announcements and General Discussion / General Discussion / SpringActionscript and PureMVC on: September 16, 2009, 05:05:56
I noticed that the SpringActionscript framework has a PureMVC extension.

Could someone describe (to someone unfamiliar with inversion of control) in a nutshell what  SpringActionscript offers as a framework, why you would use it, and how it might integrate with PureMVC?
32  Announcements and General Discussion / Public Demos, Tools and Applications / growersaunaturale on: September 14, 2009, 05:17:37
Recently competed my first application using PureMVC. End up going with amfPHP for the database remoting. There's a public gallery and a private admin once you're logged in. Overall, was a LOT of fun building and plan on using puremvc for all my web apps moving forward.

check it out, lots of fun
http://www.growersaunaturale.com/

jbach at bitstream.ca
design- lollipop digital inc http://wearelollipop.com/
33  Announcements and General Discussion / Architecture / FInal State Machine..need feedback on FSM definition for videoplayer on: September 06, 2009, 07:42:32
This is what I have so far, unless I'm mistaken I don't see the need for any entering or exiting guards.
Can anyone suggest whether I'm on the right track?

//CODE START
<fsm initial={Main.STATE_READY}>
            <state name={Main.STATE_READY}  >
                <transition action={Main.ACTION_START} target={Main.STATE_PLAYING}/>
            </state>
            <state name={Main.STATE_PLAYING} >
                <transition action={Main.ACTION_PAUSE} target={Main.STATE_PAUSED}/>
                <transition action={Main.ACTION_STOP}  target={Main.STATE_STOPPED}/>
            </state>
            <state name={Main.STATE_PAUSED} >
                <transition action={Main.ACTION_RESUME} target={Main.STATE_PLAYING}/>
            </state>
            <state name={Main.STATE_STOPPED}>
                <transition action={Main.ACTION_RESET} target={Main.STATE_READY}/>
            </state>
         </fsm>;

//CODE END


and then in my ApplicationFacade

//CODE START
override protected function initializeController () : void
      {
         super.initializeController();
         registerCommand( STARTUP,       StartupCommand );   
registerCommand( Main.ACTION_RESET,       ReadyCommand );
registerCommand( Main.ACTION_START,       PlayCommand );
registerCommand(  Main.ACTION_STOP,       StopCommand );
registerCommand(  Main.ACTION_PAUSE,       PauseCommand );
registerCommand(  Main.ACTION_RESUME,       PlayCommand );
}
//CODE END
34  Announcements and General Discussion / Architecture / Q;Architecting a PureMVC Video Player on: September 03, 2009, 11:11:50
For my next project I'd like to create a modular video player using puremvc.

Obviously a case for Final State Machine, but confused about proxies and mediators.

What should the function of a proxy be (in a videoplayer)?


35  Announcements and General Discussion / Architecture / Q; State pattern to represent 'logged IN' and 'logged OUT' ?? on: August 31, 2009, 05:56:08
I've built an application that has a number of sequentially viewed steps (my view components) and also also allows the user to be either 'loggedIN' or  loggedOUT'  while navigating from step to step.

Chapter 10 of the excellent 'HeadFirst DesignPatterns' describes the State Pattern as 'encapsulating state-based behaviour and delegate behaviour to the current state'

I'm thinking that being 'logged IN' or 'logged OUT' represent 2 discreet states and perhaps I should be implementing the state pattern (ie the FinalStateMachine) BUT,  the behaviour of my application doesn't change on logged IN or OUT, only the appearance changes.

Can anyone share their rationale and or examples in using the State machine and-or help clarify the above?
36  Announcements and General Discussion / Architecture / Q:When does it make sense to use Multicore over single core on: August 27, 2009, 05:44:53
Hi
Could someone describe examples of when it would make sense to use Multicore over single core?
37  Announcements and General Discussion / General Discussion / Code and compiled swf size, Standard vs Multi-core and both with LoadUp Utility on: August 26, 2009, 01:35:14
Hi
Has anyone done a comparison of the compiled file size of swfs using Standard vs Multi-Core and both with LoadUp Utility?

Might be useful in cases where file size is an issue.
38  Announcements and General Discussion / Architecture / Q:Passing queryString values into application on startup on: August 19, 2009, 08:59:08
I have a queerystring utility class I'm instantiating from my main class.

If there are querystring key value pairs associated with the url that loads the application, I need to feed them into the application as they will determine what my application does on startup.

My question is, what is the best practice for doing this in  PureMVC app?

Should I pass any query string variables  into my ApplicationFacade startup method and then make them part of the first STARTUP notification?
39  Announcements and General Discussion / General Discussion / Q: Best practice, where to store constants? on: August 10, 2009, 06:04:51

Constants used by notifications that are mapped to commands, and might be used by more than one mediator, I store  in the Appplication Facade.

Other constants NOT mapped to any commands, I keep in the relevant view component. The latter would be used in both events dispatched by the component as well as the component's mediator.

Can anyone share their rationale for storing public constants and-or provide feedback on whether the above is recommended?
 
40  Announcements and General Discussion / Getting Started / VO's and Binding in an Actionscript only project on: July 29, 2009, 01:34:59
Most of the examples I've seen are Flex only and make ample use of Binding, especially when populating VO's.

Can someone give me an example of using VO's in an Actionscript only project?
41  PureMVC Manifold / Standard Version / Concrete mediators and the viewComponent on: July 29, 2009, 11:21:28
I've always assumed that the viewComponent in concrete mediators always references the Main class(passed in via  a notification body in the StartupCommand).

But on page 34 of the best practices document, I see the LoginPanelMediator constructor has the Loginpanel view as the viewComponent.

http://puremvc.org/component/option,com_wrapper/Itemid,30/

Can someone shed some light on this?

This might explain why  I'm having a heck of a time getting the implicit getters setters working properly...
42  Announcements and General Discussion / General Discussion / Using implicit getters in concrete mediators on: July 29, 2009, 05:24:48
p35 of the best practices document
http://puremvc.org/component/option,com_wrapper/Itemid,30/

If I try duplicating the example, using the following in my LoginPanelMediator, loginPanel traces null. Also, shouldn't viewComponent in the implicit getter reference the Main class , passed in thru the body of the StartUpCommand?


//CODE START
// User clicked Login Button; try to log in
private function onTryLogin ( event:Event ) : void {

trace('loginPanel==='+loginPanel);//traces null
sendNotification( ApplicationFacade.LOGIN, loginPanel.loginVO );
}
// Cast the viewComponent to its actual type.
protected function get loginPanel() : LoginPanel {
return viewComponent as LoginPanel;
}

//CODE END
43  Announcements and General Discussion / Getting Started / Q:Communicating state between different proxies at runtime on: July 23, 2009, 06:26:45
Hi
This is related to the cross-referencing proxies post but not quite the same issue I believe.
I am also a novice PureMVC'er so for my first app want to avoid using StartupManager or any other PureMVC utlities.

I have 3 proxies, 2 that handle uploading and saving of images to a remote server, and a third that manages user login, registration as well as current application 'states' defined as static constants.

My 2 'image' proxies need to communicate their 'state' to the UserProxy.
Would the simplest solution and best practice be to simply define a 'SiteProxy' which all 3 proxies extend?
And to define my static 'state' constants in this SiteProxy so that ALL proxies know about them?
Or should my existing proxies retrieve an instance of each other via the facade?
44  Announcements and General Discussion / Architecture / Tracking implementation on: July 22, 2009, 04:17:02
In several projects I have worked on tracking logic has been requested by the client AFTER the site went live, ie tracking was never part of the original functional spec.
By tracking I mean all user interaction such as button clicks, form entries, and, if the site is composed of subsections, sections viewed, as well as client specific hardware-software data accessible via the Flash api.
For instance Google Analytics
http://www.insideria.com/2009/02/using-google-analytics-within.html

Can someone tell me if tracking can be easily implemented in a PureMVC application AFTER the project is complete, and if so, would any of the original 'actors'(proxies, mediators, controllers) have to be modified, or would they be supplemented with additonal actors?
For example, I assume it would make sense to have an additonal 'TrackingProxy' but not sure if existing mediators would need to be modified or if there was some other way.
45  PureMVC Manifold / Standard Version / PureMVC (single core) as3 project templates for FB 3, Textmate, Flashdevelop on: July 21, 2009, 12:49:45
Hi
Can someone tell me where I might find any existing as3 project templates for FB 3, Textmate, flashdevelop?
Pages: 1 2 [3] 4