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 ... 10
16  Announcements and General Discussion / General Discussion / Re: PopUps again on: February 26, 2009, 05:56:33
http://www.nutrixinteractive.com/blog/?p=329

I think his solution is rather nice. 'Best' or even 'better' is fairly subjective to needs.
17  Announcements and General Discussion / Getting Started / Re: Steps to follow on: February 24, 2009, 01:48:30
@Joel
You made me google “cut a hole in that box “ :)
 I didn't know this idiom before  because of my mediocre English and because I didn't see the sketch featuring Justin Timberlake and Andy Samberg - that comes up when you search for those keywords. From  Cliff's comments I inferred  that it was meant well.

Emmy award winning sketch!

sorry, it is just what popped in my head when I read your title ;)

18  Announcements and General Discussion / Getting Started / Re: Steps to follow on: February 24, 2009, 10:49:08
    
Steps to follow :

Step 1, cut a hole in that box...

Your pictures look like you have the right idea.


19  Announcements and General Discussion / General Discussion / Re: dynamic instantiation on: February 17, 2009, 02:57:36
That actually isn't mine, but it is a 'live' project compared to the other. I've used Wietse's for some time, and it is very functional too after it is tweaked to allow styling.
20  Announcements and General Discussion / Architecture / Re: How to raise syn notifications in pure mvc at any layer on: February 17, 2009, 02:06:00
http://trac.puremvc.org/Utility_AS3_AsyncCommand

I think this is what you need.
21  Announcements and General Discussion / General Discussion / Re: dynamic instantiation on: February 17, 2009, 01:51:12
offtopic...
Which SuperPanel are you using? The constructor looks like the 'old' one.

http://brandonmeyer.net/blog/?p=7
22  Announcements and General Discussion / Architecture / Re: VO IDs from mysql on: February 17, 2009, 01:34:24
Flex has UIDUtil for creating them.
23  PureMVC Manifold / Standard Version / Re: amfphp placeholder data... on: February 09, 2009, 03:23:50
The returned data is binary objects, unlike JSON or XML, which is ascii text (generally). You can strongly type the data so when AMFPHP sends an ObjectVO via AMF, your application recieves and ObjectVO - and not a string of ascii that you must then process.
24  Announcements and General Discussion / General Discussion / Re: MVP and pureMVC differences on: February 09, 2009, 03:21:48
how re-usable can View components really be anyway

Bottom line; Component developers don't need to understand the framework.

-=Cliff>

I yank small components that I find useful out all the time and post them on my website for others. My projects are all PureMVC, but I can yank the components out and share them without needing the broader framework for them to function as expected.

Developing with PureMVC alongside the Flex framework allows use of custom events, binding, and all the other great stuff flex/as3 brings to the table at the component level. PureMVC is sitting on top of that gluing the whole thing together, managing the data, and facilitating communication amongst a complex set of components that are otherwise unaware of one another. The components themselves could care less WHERE the data is coming from, and aren't tied to a framework (outside of Flex itself) in any way. I think this fact is why I dig PureMVC over most of the other frameworks I have reviewed. They seem to want to get inside of your components to do their work. The mediators and proxies in PureMVC are kickass in this regard; they allow me to separate my tiers. <3
25  PureMVC Manifold / Standard Version / Re: Remote Objects on: February 03, 2009, 10:42:25
Ok. The Delegate Class I used is a Proxy.  How do the proxies, that need the data to send it to mediators, know when the data arrives into the Delegate Class from .Net (because they can't listen to Notifications) ?  Using a Command for each proxy results in a big number of commands. Let me know if I should use another approach. Thanks!

I generally make my delegates static classes that are referenced in my interested proxies or run a single command with a switch/case that pushes the data to the appropriate proxies based on the information received.
26  Announcements and General Discussion / Public Demos, Tools and Applications / Re: PGProxyReservation on: February 02, 2009, 02:52:59
After using it, the only gripe I have is that you can't pass in identifiers for proxies outside of the proxy name. Once I added in an instance name parameter, it works great.
27  Announcements and General Discussion / Getting Started / Re: What should I mediate? on: February 02, 2009, 02:37:34
Hi all,

First time user of PureMVC, I've just succeeded in getting Zend_Amf to work with a test Flex project.

Scenario:
I'm building an application in which, datagrid are loaded within tabNavigators.  There are 2-3 tabNavigators, so there can be multiple datagrids showing at the same time (the selection in one will affect the dataProvider for the others).
Example: Selecting a row in datagrid1 (in tabNavigator1) will update the tabNavigator2.  Once tabNavigator2 is updated, the user will select a tab and datagrid2 will be displayed with informaion pertaining to the selected row in datagrid1.

Question:
What should I be creating Proxies and Mediators for exactly?  Should each datagrid have its own Mediator?  Same for the tabNavigators?  Should I only create Mediators for the tabNavigators?  Should I create Proxies based on the PHP service I'll be calling? (ie: one Proxy for each remote service?)

Sorry for the very noobish question, but I can't seem to get my head around what level the PureMVC is supposed to tie to.

Thanks!
-frag

You don't really need to proxy your remote SERVICE as much as your data model. So, from ZendAMF you are retrieving a list of Widget objects. On the Flex side, you might want a WidgetListProxy that holds an ArrayCollection of all your widgets. In addition, you may want to create individual WidgetProxy objects for each WidgetVO. This is wholly dependent on the level of control you need in your application.

The same is really true for mediators. In the case of a tab navigator, I generally mediate the navigator itself, and then each screen of the navigator, as well as the datagrid that has some control over all the navigators (in your case)
28  Announcements and General Discussion / General Discussion / Re: Fake binding on: January 30, 2009, 09:00:24
Check out the Flex Employee Admin demo. In short, shuttle a VO to the view component via its Mediator, then inside the component, bind to the locally-held VO reference.

-=Cliff>

Would you frown on binding a property (which is bound to form controls or a list or whatever) of a component to a proxy object's data? I've been going back and forth with this.
29  Announcements and General Discussion / General Discussion / Re: Proxy to Controllers/Proxy? on: January 30, 2009, 08:58:13
How do you handle proxy to proxy communications?

I consider my data model to be entwined with itself, meaning I handle proxy-to-proxy communications directly. I have no problems calling an instance of another proxy in my applications data model from any other proxy in the same model.

In terms of how many proxies an application might need... well, that depends on the granularity you want/need to achieve for your purposes. There is no set limit outside of the obvious limit placed on the platform and system resources. For some portions of my model I will store a collection of objects in an ObjectListProxy, with all of the VOs proxied there and only there. Other times, I want a finer grain to my control so I will create the ObjectListProxy as well as creating individual ObjectProxy objects for each of my unique Objects.

You don't need to have a command between your proxy communications, but you certainly can. It is perfectly acceptable to initialize and activate a command from within a Proxy.
30  Announcements and General Discussion / Architecture / Re: Remoting with AMFPHP / ZENDAMF / WEBORB on: January 28, 2009, 06:21:03
Does WebORB implement amfext? That C extension makes it incredibly fast. I've used it with amfphp. I use PyAMF and the implemented the straight c encoding lately and it makes a noticeable difference.

XML is easy, but in terms of speed it is a real drag.
Pages: 1 [2] 3 4 ... 10