I've had a somewhat different experience extending the framework than the people pushing on to this thread, I haven't gotten any headaches, and actually use extending the framework to learn the framework, perhaphs What I've been doing is much simpler than what you guys have been doing, but I do have one occuring problematic theme, And I'm not sure if it's an extending the framework issue or another form of code organization issue so I thought I'd throw it Out there and see if you guys have some clever solutions I can steal and tell my coworkers I dreamt up.
I would like to extend objects way up the food chain like DisplayObject, UIComponent and have it propogate all down the line, but not to modify their behavior just to add some functions to help me implement a few of our business rules more elegantly. An example is we support several different languages, all of the translations reside in the database so we're forced to pull the data in and then on every thing that displays text we use a function to look up the text based of the users selected language, and biz rules. (some things are required to be in English). As it is, I have to import the freaking language pack object to EVERY SINGLE object which means an mx:script in EVERY SINGLE object. Sure would be nice to have that language pack function already there. B. -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, February 22, 2007 7:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Are other developers hesitant to extend existing classes in Flex? On Wednesday 21 Feb 2007, Dana Gutride wrote: > Recently on this list, somebody said that the Flex framework team has > been surprised at the resistance many developers have to subclassing > and they'd like to understand it better. Really ? We've written several sub classes of the standard controls (like a SelectableCellDataGrid). It was hard work, but only as hard as I expected, given I knew little about the Framework. I expect future tasks to be easier because I'll understand more about how the inards work. -- Tom Chiverton Helping to paradigmatically scale exceptional data **************************************************** 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 --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/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 - Join or create groups, clubs, forums & communities. Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***