views:

460

answers:

3

Is the source code available somewhere just to make a few small fixes to textfield class?

A: 

Flex is an open-source SDK built on top of Flash, so it shouldn't be a problem to find the relevant source file in the SDK and apply your fix.

But it might be simpler to either:

  1. Apply the fix externally. e.g. by deriving from the class and overriding.
  2. Open a bug with the SDK people and ask them to fix it (that is, if it's not an urgent critical bug).

If you do end up fixing it in the SDK, consider releasing your fix back to the community.

Assaf Lavie
The TextField class isn't accessible as part of the Flex SDK as it's in the flash package. I'm not sure it's possible to retrieve the source for TextField
James Hay
+1  A: 

You should extend the Textfield class. Override what you want to change.

monkee
+1  A: 

As mentioned, the sources for the internal flash.* classes are not available. To modify or add behavior you'll need to subclass TextField.

Christophe Herreman
alwaysShowSelection:Boolean [read-write] When set to true and the text field is not in focus, Flash Player highlights the selection in the text field in gray. How can I change gray to another color by subclassing?
Tom