Sorry, nevermind my second question - I found the code below in the docs.  I would still really appreciate help with properly resetting the validators.
 
Moishe Groger
 
            // Override the setter method. 
            override public function set data(value:Object):void             {         
                if(value != null)                 {
                    // Use super to set the value in the base class. 
                    super.data = ""
                    // Determine the icon based on whether the item is on sale.
                    if (value.SalePrice == true) 
                        onSale.source="http://myCompany.com/icons/saleIcon.jpg";
                    else 
                        onSale.source="http://myCompany.com/icons/noSaleIcon.jpg";
                }    
                // Dispatch the dataChange event.
                dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Moishe Groger
Sent: Thursday, July 06, 2006 4:56 PM
To: [email protected]
Subject: RE: [flexcoders] Binding in Flex 2.0, Cairngorm 2.0

Right... I guess it depends on your definition of "works". I don't think
the behavior my form is exhibiting looks very professional, imho. :-)

I'm also having some problems with data binding in itemRenderers. I need to
run a function whenever the data object changes. I tried calling the
function on dataChange, creationComplete and initialize but the function
still does not run if the data changes before that area of the application
has been created. What is the correct event to listen for?

Thanks,
Moishe Groger

-----Original Message-----
From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On
Behalf Of Tom Chiverton
Sent: Thursday, July 06, 2006 8:44 AM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] Binding in Flex 2.0, Cairngorm 2.0

On Thursday 06 July 2006 07:32, mgrogero wrote:
> ModelLocator. Is that why this method of resetting the form doesn't
> work anymore?

It's not like it doesn't work - it's just it red-outlines all the required
fields straight away.

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

------------------------ Yahoo! Groups Sponsor --------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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

__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to