Well personally, when writing components (which is kind of what your
stating you've done), i keep the "views" selfcontained.

An Example was a CustomCalendar

Ingredients:
1xCombobox = month
1xNumericStepper = year
1xCalendar = day

Now my other views rely on the fact that these three controls trigger
a date change (depending on what you manipulate).

So do i write viewHelpers for every single container within my
heirachy? not really (not in my view heheh)

even though they feel like a view, in reality they are probably
considered a "component" and as such, encapsulation rules apply?

So what I do is inside my CustomCalendar.mxml i put the logic in
there, and keep one public variable up-to-date ...
"selectedDate:Date", then I dispatch an "onChange" event.

In doing this my actual view can listen for a change, and then carry
out further instructions via its ViewHelper (ie update model, or
trigger an event broadcast).




On 8/23/05, Omar Ramos <[EMAIL PROTECTED]> wrote:
> Hi again :),
> 
> I have a question about ViewHelpers again! I know the ViewHelpers are
> there to massage the Model. But what when I have to invoke difrent
> events of that specific view from other views? For example I am making
> a drawing application and I have difrent methods for creating shapes
> manipulating them ect. These methods need to be called from other
> views that are deaply nested. Does this scenario justifies the
> ViewHelper ? So that I can have difrent commands like DrawShapeCommand
> or DrawRectangleCommand and have each view only dispatch the event to
> draw a shape? Thanks and sorry for the trubles just trying to use your
> framework correctly.
> 
> 
> Omar Ramos
> System Developer
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hsbp424/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124749601/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to