Archive for December 4th, 2007

04
Dec

Sorting XML documents using an XMLListCollection

The following example shows how you can sort an XML document by converting it into an XMLListCollection and applying a sort. You can also easily reverse the current sort by calling the SortField object’s reverse() method and refreshing the XMLListCollection object.

Full code after the jump.

Continue reading ‘Sorting XML documents using an XMLListCollection’

04
Dec

Hiding nested controls in a Flex RichTextEditor control (remix)

In a previous example, Hiding nested controls in a Flex RichTextEditor control, we looked at how you could hide and remove the nested link text input control within a RichTextEditor control in Flex. The following example extends the example somewhat by allowing you to remove any of the nested controls (including the VRule controls) in in the tool bar by setting the nested control’s visible property to false, as seen in the following snippet:

richTextEditor.colorPicker.visible = false;

Full code after the jump.

Continue reading ‘Hiding nested controls in a Flex RichTextEditor control (remix)’