David,
You need custom class factory extending ClassFactory - then you can do anything - runtime styles, events, etc. You would also need to extend datagridcolumn object for declarative (MXML defintion of the extended attributes.
Here is the closest example I have - instead of event it associates runtime styles and properties with functions:
Here are bits and pieces on the topic
The Web2.0 magazine starts printing our chapter on datagrid techniques this month - I believe the part that talks on extending ClassFactory is in the first or second part of the article.
Sincerely,
Anatole
On 10/14/06, David Harris <[EMAIL PROTECTED]> wrote:
I have a situtation where I am adding a button to a dataGridColumn
using a ClassFactory.
I know how to set properties to my buttons, but I want to add an
event, either by and event listener or assigning a value to the
"click" property.
I've attempted a coupled of ways, but with no luck.
Any one know what I'm missing?
Example:
=====================================================
var btnThisButton:ClassFactory = new ClassFactory(Button);
btnThisButton.properties = { label :"harry",click:someFunction };
=====================================================
__._,_.___
--
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
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- [flexcoders] adding events to a new ClassFactory butto... David Harris
- Re: [flexcoders] adding events to a new ClassFact... Anatole Tartakovsky
Reply via email to

