In a previous example, “Determining which fonts are embedded in a Flex application”, we saw how to display a list of all embedded fonts within a Flex application.
The following example shows how you can check for a certain embedded font by using the Flex StyleManager class’s isFontFaceEmbedded() method.
Full code after the jump.
Continue reading ‘Determining if a specific font is embedded in a Flex application’
The following example shows how you can determine which fonts are embedded within your Flex application by using the SystemManager class’s embeddedFontList property.
Full code after the jump.
Continue reading ‘Determining which fonts are embedded in a Flex application’
The following example shows how you can disable the highlighting on the current date in a Flex DateChooser control by setting the showToday property.
Full code after the jump.
Continue reading ‘Toggling the current date highlighting on a DateChooser control in Flex’
In previous examples, “Creating a simple image gallery with the Flex TileList control” and “Creating a simple image gallery with the Flex HorizontalList control”, we saw how you could create a simple image gallery using the TileList and HorizontalList controls.
The following example shows how you can load XML files using the HTTPService tag so that you can dynamically load different galleries.
Full code after the jump.
Continue reading ‘Dynamically loading XML files using the HTTPService tag’
The following example shows how you can display scroll tips in a Flex List control by setting the showScrollTips property. You can also customize the scroll tip text by setting a custom scroll tip function using the scrollTipFunction property.
Full code after the jump.
Continue reading ‘Displaying scroll tips in a List control in Flex’
The following example shows how you can set a custom bar skin for a Flex ProgressBar control by setting the barSkin style.
Full code after the jump.
Continue reading ‘Setting the bar skin on a ProgressBar control in Flex’
The following example shows how you can set the border color on a Flex ProgressBar control by setting the borderColor style.
Full code after the jump.
Continue reading ‘Setting the border color on a ProgressBar control in Flex’
The following example shows how you can set the menu selection mode on a Flex DataGrid control by setting the menuSelectionMode property.
Full code after the jump.
Continue reading ‘Setting the menu selection mode on a DataGrid control in Flex’
The following example shows how you can use an embedded font with an error tool tip in Flex.
Full code after the jump.
Continue reading ‘Using embedded fonts with tool tips in Flex’
The following example shows how you can convert an array of strings to an array of objects so it can be used as a data provider in Flex.
Full code after the jump.
Continue reading ‘Converting an array of String objects to an array of Object objects in Flex’
The following example shows you how you can change the header height on a TitleWindow container in Flex by setting the headerHeight style.
Full code after the jump.
Continue reading ‘Setting the header height on a Flex TitleWindow container’
The following example shows how you can access the close button in a Flex TitleWindow container by using the closeButton property in the mx_internal namespace.
Full code after the jump.
Continue reading ‘Accessing a TitleWindow container’s internal close button in Flex’
The following example shows how you can toggle the item layout direction of the Flex TileList control by setting the direction property to “horizontal” or “vertical”.
Full code after the jump.
Continue reading ‘Setting the layout direction of a TileList control in Flex’
The following example shows how you can dynamically load a CSS file and apply the style sheet to a Flex TextArea control by setting the styleSheet property.
Full code after the jump.
Continue reading ‘Applying a cascading style sheet to a TextArea control in Flex’
The following example shows how you can create a Flex Alert control that isn’t draggable by listening for the mouseDown event and calling the stopImmediatePropagation() method in the event handler.
Full code after the jump.
Continue reading ‘Creating an undraggable Alert control in Flex’