That's the way that I was trying to explain.  ShoppingCartViewHelper
(); is a class.  What I meant about keeping the mxml files in the 
view section, was just where they are located (directory) in the 
project, not where they are used in the project.

It sounds like you're getting there. :)

-TH

--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Wednesday 21 June 2006 20:20, Tim Hoff wrote:
> > I think that you would keep your view/viewHelper in the view 
section
> > and create a Class reference in the ModelLocator.  
> 
> I'm not sure what you mean here by 'Class reference'.
> What I've done is, in each view that has a named (with id=) view 
helper remove 
> the helper (<view:shoppingCartViewHelper...) and change all in-
file 
> references from thisViewHelper to model.thisViewHelper. Then in 
the Model:
> public var shoppingCartViewHelper:ShoppingCartViewHelper;
> .
> shoppingCartViewHelper= new ShoppingCartViewHelper();
> 
> Where ViewHelpers need access to the Model, that becomes a 
constructor 
> argument.
> 
> > follow this path.  Your dataProviders (VOs) would also need to be
> > instantiated or kept in a collection that binds individual 
members
> > to individual instances of the view.  
> 
> We haven't had to do this yet.
> We're just passing things like 'model.listOfThingies' in as 
arguments to the 
> views, which the view then uses as a dataProvider to bind to.
> 
> -- 
> Tom Chiverton
> 
> ****************************************************
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the 
registered office. Any reference to a partner in relation to 
Halliwells LLP means a member of Halliwells LLP. Regulated by the 
Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
> 
> We are pleased to announce that Halliwells LLP has been voted AIM 
Lawyer of the Year at the 2005 Growth Company Awards
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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