--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:
There are several techniques that you can use for this; it really
depends on what the need is and the sophistication of the application.
Personally, I would employ a presentationModel to solve this, but using
an MVC framework
Don't agree. The smoke test for tight coupling is that if component A
is tightly coupled to component B and you take away component B, you get
a compiler error in component A. By using an event, that doesn't
happen. Component A dispatches an event that component B listens for.
If you take
A couple more thought on this and I welcome others to jump in.
Here's an example of where a custom event would be preferable to
using public properties in components. Similar to Peter Ent's
example, let's say that you have four different views that a user
could select an order from; a DataGrid
--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:
Don't agree. The smoke test for tight coupling is that if component A
is tightly coupled to component B and you take away component B, you get
a compiler error in component A. By using an event, that doesn't
happen. Component
--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:
Not disputing that public properties are a viable approach. Just
pointing out that Flex is an event driven framework.
Oops, missed this bit. If you use a generic event, you're still doing things
in an event driven way--you're
--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:
A couple more thought on this and I welcome others to jump in.
Here's an example of where a custom event would be preferable to
using public properties in components. Similar to Peter Ent's
example, let's say that you have
You can say the same thing about the public variable; both classes are
dependent on it. If you take the public variable out you have the same
problem. Is that tight coupling? Again, just preference and where you
want to put or how you want to structure the code. I'm used to using
custom
Both classes are still dependent on the event class; you just get it
baked in automatically when you use metadata.
-TH
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:
--- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
Not disputing that public properties are a
That's certainly an interesting opinion, but those terms usually go
along with Cairngorm, which isn't universally accepted as being loosely
coupled
http://blog.iconara.net/2008/04/13/architectural-atrocities-part-x-cairn\
gorms-model-locator-pattern/
Took the words out of my mouth :)
I agree with you Tim, and thought your explanation was top notch and
respectful.
On Mon, May 18, 2009 at 2:35 PM, Tim Hoff timh...@aol.com wrote:
That's certainly an interesting opinion, but those terms usually go along
with Cairngorm, which isn't
Don't want to flood the list with too many posts, but thanks Richard.
-TH
--- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote:
Took the words out of my mouth :)
I agree with you Tim, and thought your explanation was top notch and
respectful.
On Mon, May 18, 2009 at 2:35
There are several techniques that you can use for this; it really
depends on what the need is and the sophistication of the application.
Personally, I would employ a presentationModel to solve this, but using
an MVC framework and VO's can be challenging for some. In this case,
using public
--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote:
At 05:32 PM 5/14/2009, you wrote:
You can just handle the click event from your button and in the
handler function pull the necessary information out of your 3 custom
components and then do what you want with
You can just handle the click event from your button and in the handler
function pull the necessary information out of your 3 custom components and
then do what you want with it.
--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote:
I have a form with 3 Custom Components
I guess my problem could be summed up like this:
How do you get a child to listen to events that occur in the
parent? The button-click will take place in the parent form, but
adding an EventListener to the child doesn't seem to do anything,
even if I set bubbles=true when I create the event.
At 05:32 PM 5/14/2009, you wrote:
You can just handle the click event from your button and in the
handler function pull the necessary information out of your 3 custom
components and then do what you want with it.
Right -- but don't I have to have those components dispatch their own
events
If you're that worried about it have your subcomponents implement a common
interface to act as the contract between them and the parent which provides the
api for the parent to pull the data out.
--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote:
At 05:32 PM 5/14/2009,
17 matches
Mail list logo