Another question Cliff
[ i hope this post isnt too confusing
]
When your mediator is registering for the direct children of their view components, does it use the syntax
facade.registerMediator ?? OR would it just be something like this.registerMediator ?? where 'this' is the component name or the class.
i am confused because most of the examples have an application mediator where the main mxml file has a view stack with each view having an id. so registering is like this (for e.g)
facade.registerMediator( new ComponentClass(app.viewId) );
the app.viewId is passed to the class.
but what do i do in my case
? i have a video container class as a view component (sub component of VideoPublisherForm). within VideoPublisherFormMediator...do i just simply do
facade.registerMediator( new VideoContainer() ); // <-- not passing anything in
this.registerMediator( new VideoContainer() ); // <-- not passing anything in
OR
facade.registerMediator( videoPublisherForm.vidContainer );
this.registerMediator( videoPublisherForm.vidContainer );
i noticed ALSO my sub components use sharedobjects
which is a proxy...but where would i register such proxy. I was thinking in the ModelPrepCommand. is that right? can i register the proxy somewhere else or would that be bad practice?