Maybe I am wrong but I thought that you can no longer to something like
this:

 

flash.text.TextField.prototype.styleSheet = myStyleSheet;

 

In my tests this doesn't create a compiler error but it doesn't work
either. If I am wrong someone please shed some light on this because I
haven't been able to make it work as it did in AS1/AS2.

 

Thanks!

Lance

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rogerio Gonzalez
Sent: Monday, December 04, 2006 6:55 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous

 

        I guess what really made this easier for us in the past was the
ability to use the 'prototype' chain to override properties and
functions at a global level for all TextField instances. I know
overriding the prototype chain is a thing of the past and for good
reasons but it sure would be nice if ALL textFields in every component
could get a StyleSheet instance from the StyleManager.








I can be wrong, but "prototype" is still "functional", am I wrong?


Rogerio 

 

Reply via email to