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 / Fabrication / Two different questions, undo manager and vo with list on: June 27, 2010, 03:12:36
Hello everyone and thanks Cliff, actually i have a commercial application running on puremvc, and it was very good worked with it.
After one year developing that application, i´ve started others that will be sold to more than one customer.
I´ve teached puremvc to some friend that liked too, its a really ease approximation of mvc concept!

I also using fabrication thats awesome layering puremvc to few lines of code...
For those who doesn´t knows, fabrication have got live again! The creator of tequila is running it to get compatibility with flex 4!!! Tequila is another layer based on fabrication to reduce code to even fewer lines!!!

So, now my framework became more "final", i´ve got a really cool and good workflow, very good to work with all those facilities.

I wanna ask two things, first about undo management. I understand that its a little abstract thing, but i´ve seen some implementations, one from puremvc, called "undo command 1.3" (command or manager, i cant remember now), and another one intrinsic to fabrication utility... i wanna know for example from Cliff, whats the difference between the two ones, and if fabrication approximation there´s some improvement.

Another question is about VO´s and grid list.
For example, i will must do in the next days, a grid/list that will manage properties of object in a very cool editor i´m building.
Those property lists are based in some "properties" and values... i wanna know from Cliff (haha i guess thats because his 100 years of programming skills ;D)... whats the better approximation to this... since a VO holds only the properties itself, so how to have it managing property and values? whats the best way? like some direct population of the list, or i will need two steps work, well, a mature light here would be appreciated, one time a really like to always try to do things in the best way i can try to achieve.
Thanks for everyone in this awesome forum. 8)








2  Announcements and General Discussion / Architecture / ONE PROXY, TWO VO´S on: September 21, 2008, 09:05:20
hi... im near finish my first great system using puremvc... its very good to work with flex3/pmvc/amfphp/eclipse bla bla ;D

ive a doubt

whats the best way to work with more than one vo, in a proxy?

because super initializes the "first one", so i can use setData(vo)

but
im needing to use one more VO... how its the best approx?

thanks.
Vander.
3  Announcements and General Discussion / Architecture / [SOLVED] :) HELP-ME URGENTLY!!!! VO DATA on: June 20, 2008, 09:29:09
Hello everyone..
im 12 hours trying to discover why i cant associate in one line expression... the proxy vo object to the view vo object!

since im using bindable for the public var on view...
like this

[Bindable] public var usuarioVO:UsuarioVO;

then the text property of fields, are {usuarioVO.nome} etc.. correspondly.. ok


my first confusion starts on proxy.. with all those different approximations that i saw
ive tried EVERYTHING hehe
but
when in the mediator i try to obtain the VO
sure i can obtain it

but if i assign just one property it works...
like
usuarios.usuarioVO = new UsuarioVO;
usuarios.usuarioVO.nome = note.getBody( ).nome;

yes.. the field called nome.. update ! cool

but when i try to associate the entire stuff
NEVER WORKS.. im going mad

usuarios.usuarioVO = note.getBody( ) as UsuarioVO;
never
usuarios.usuarioVO = note.getBody( )[0] as UsuarioVO;
never

ive played too with the confusion new UsuarioVO with and without () parenthesis (UsuarioVO () and just UsuarioVO);

thats also confusing
since the VO dont have a constructor
like on some examples dont have too.. and i remember that i maybe seen someone with parenthesis

ive tried too creating a setter on the proxy
and associateing view vo directly = proxy vo
hmmm i remember that worked when i wanted to clear the fields :) with new VO declaration on the proxy then association...
i even got more and more lost... when i just cannot understand the getter... the constructor.. the data... the strange setdata instead sending event.result...
and tried many things and im lost... so im writing this as a last resource..
and im so convinced that this is the one of the most (if not the most) problem on the learning curve experience of this total usefull framework that cliff developed..

thanks everyone
4  Announcements and General Discussion / General Discussion / 1 mediator 2 views on: May 16, 2008, 01:37:01
how to register more than one view with same mediator?
5  Announcements and General Discussion / General Discussion / WHATS EVENT METATAG? on: May 14, 2008, 07:38:36
whats that event metatag, on the best practices document, in the mxml file for example?

i know i know that is about declaring event to the compiler, to use like a tag on component i dunno exactly, ive read on the manual... it can be on mxml or in the script too...
ive never used it.. and things works... im afraid that im missing something
seeing the loginform.mxml on the document, for example, i did not catch the utility of it, since its ='tryLogin' maybe if it was TRY_LOGIN hehe... im missing something

thanks
6  Announcements and General Discussion / Getting Started / Doubt about views on: May 07, 2008, 09:11:37
hello everyone...
im so excited starting my first app...
ive got some doubts..
my app have few "form views screens" plus few "windows"...
the windows thing, im sure that i must use popupwindow of a mxml titlewindow thing
okay, i can register it with a mediator, and popup it...
but... im in trouble with a thing: i want to have a general use one... that i can customize for example whats inside a text control, inside of a "generic" titlewindow, like for alert things with the possibility of some advanced behaviour than alertbox...
since its POPPED... i dunno how to access a control inside of it from the code where i instancied it (POPPEDUP IT) !!!! like a text control... (INSTEAD USING THE PARTICULAR TITLEWINDOW MEDIATOR... BECAUSE I WANT IT GENERIC... SO I CAN ACCESS DIRECTLY... IF AT LEAST I COULD ACCESS A FUNCTION ON THE TITLEWINDOW MEDIATOR, LIKE A GENERIC SETTER... BUT I DUNNO HOW TO ACCESS EVEN THE MEDIATOR OF THIS THING INSTANTIED, I MEAN POPPED heheh.... )

PLEASE HELP MEEEEEEEEEEEEE i must start this app soon.. because ive spent 3 months studying all this fascinating new world for me...

the second doubt, is the classical question about, views... viewstack... deferred instantiation, best practice, mediator, mediator registration, proxy for states, bla bla, whats the recommended approach on your point of view actually?

i think that many ppl can face this problem like me..
thanks everyone! :)
7  Announcements and General Discussion / General Discussion / My last confusions DATA on: April 19, 2008, 04:56:35
okay...
i will try to start integrate amfphp remoting on it...
then some questions made me lost...

1. still confused where is the place to initialize a new VO()... in a view ADD command for example? only if it dont passes value? in the SUPER inside proxy constructor? and why i see in examples the second argument of super, being an array for example, or even in the constructor header? im lost! hehe

2. i think i must build a business delegate to connect with amfphp... so business delegate its only a connector? with all that asynctoken stuff that i really did not fully understand.... or business delegate also is a place of 'common methods' i saw in a example some add, update, delete, on business delegate... strange.. i was thinking that business delegate just connect and other things is managed by the proxy... so business delegate can be a common place for common proxy tasks that can be reused? o.O

3. as i said im trying to start using amfphp... ive step debugged and i feel strange that it seems just passing through constructor before registering the proxy.. i dunno... feel strange the sequence that the application runs.. in step.. seems somelike backward o.O... i need a little help where to put the things... and sometimes i saw a xml file like service config something like that... where put some uri stuff (endpoint) to amfphp.. but i also read that its not necessary and can be done via actionscript...

someone SAVE-ME! o.O
im LOOOOOOOOOOST hehe

thanks everyone
8  Announcements and General Discussion / General Discussion / Proxy VO Getters on: April 16, 2008, 03:01:07
Hello everyone o/

Im Vander from Brazil, and im joining pmvc/flex/amfphp paradigm.
Im so happy... and starting to became less scared with all new stuff.
Ive used to program in flash/as2.. and i developed some RIA´s.. for some companies, including a little big one.
Yes ive stucked with all that rotten workflow hehe.
Ive developed a minimal application using PureMVC concept... and VO... it worked :)
consists of a button, that when click on it... it adds ++ to a uint.. and a label display it...
its something like that:

pseudo

view... import vo bindable... binding label.text
mediator... command addnumber... proxy... function addnumber etc
then notification... mediator boom view... ok works fine :)

but im having a great doubt that pulled me to became a forum member...

for example... im initializing the vo in the view...

[Bindable]
public var valor:Valor=new Valor(0);

0 is the initial value.. no problem with that... automatically the label.text becames 0, as expected...

my problem is... i cannot manage to make a getter for the actual value.. in the proxy
ive tried all but i dont understand how...

i guess that the problem is connected with a point of puremvc that i simply cannot understand... THE PROXY CONSTRUCTOR.
and/or the SUPER second argument.

Thanks... everyone, thanks Cliff.
Pages: [1]