I am using PureMVC for the first time in addition to Flex for the first time. I've already spent about a month with Flex and decided to use PureMVC as I wanted a more AS3 based solution.
I was able to reuse my past Flex work without much trouble but I'll definitely want to refactor later on.
Things are going well so far.
The only issue I have so far is regarding Proxies.
I'm a Flash AS3 website kinda guy... this application stuff is new to me.
I have two functions I want to call from NotesProxy.as
I call notesProxy.loadNotes() which gives me all the note data as a fat XML... great. I call it from a mediator now but I will put it into a Command later on. That's what commands are for
I also want to call notesProxy.saveNote(DTO). makes sense, right... call "Notes" related functions from the NoteProxy.
The issue is that my result handler expects a fat XML but the response from my saveNote() call may only return the added note or a success="true" confirmation. It may not return the full xml structure that getNotes() uses
(I call 2 different Delegates, one for each of the functions, from one Proxy. The delegates just point to different http locations... I'll clean that up later);
Maybe the idea of a "Proxy" is eluding me.
I'd appreciate your help in pointing me in the right direction.
source at
www.wasimsingh.com/pmvcapp/PMVCTest.zipSo far, I've enjoyed working with PureMVC and have already realised some of its benefits... and it's only been 2 days!
I'm learning quickly. Hopefully I'll be able to contribute to the project in some way.