Archive for 'Software'

Tree component’s change event

When modifying a tree through its model, the change (selection changed) event won’t always fire as it should.

Embedding fonts with TextFormat and component styles

When using an embedded font with a custom TextFormat, remember that the embedFonts property of the text field to which the TextFormat is being applied must be set to true. The property defaults to false, so just setting the format of a TextField to a TextFormat containing an embedded font isn’t sufficient for the embedded font to be used.

DataSet filtering gotchas

When changing the filter function on a DataSet, it is necessary to set the filtered property to false and then true again in order for the proper modelChanged event to be fired.

Using custom AS2.0 classes with MovieClips that contain Components

When creating a movie clip with an associated AS 2.0 class (using the Linkage dialog for the symbol), any components on that movie clip cannot be accessed in the constructor of the class. References to the component instances will be non-null, but they’ll appear as plain movieclip instances and not have any of the methods or fields from their component classes.

CellRenderer setValue behavior

The “selected” parameter of the CellRenderer’s setValue() method behaves differently from how it is documented.