In a previous example, “Changing the preview color width for the ColorPicker control in Flex 3″, we saw how you can change the preview color width for a ColorPicker control.
The following example shows how you can change the text field width in the ColorPicker control’s drop down swatch panel by setting the swatchPanelStyleName and textFieldWidth styles in Flex 3.
Full code after the jump.
Continue reading ‘Changing the text field width for the ColorPicker control in Flex 3′
The following example shows how you can change the preview color width in the ColorPicker control’s drop down swatch panel by setting the swatchPanelStyleName and previewWidth styles in Flex 3.
Full code after the jump.
Continue reading ‘Changing the preview color width for the ColorPicker control in Flex 3′
The following example shows you how you can change the corner radius of a ComboBox control in Flex by setting the cornerRadius style.
Full code after the jump.
Continue reading ‘Changing the corner radius of a Flex ComboBox control’
The following example shows how you can listen for stateChange events on a Flex VideoDisplay control to display the video’s current state in a ProgressBar control, List control, or just perform specific actions if a certain state is entered. It also shows how you can use a ProgressBar control to display the amount of video that has already been played, and how much is still remaining by listening for the playheadUpdate event and passing the VideoEvent class’s playheadTime property, and VideoDisplay class’s totalTime property to the ProgressBar class’s setProgress() method.
Full code after the jump.
Continue reading ‘Determining a VideoDisplay control’s current playback state using the state property and stateChange event’
The following example shows how you can create semi-transparent dropdown menus in the Flex ComboBox control by setting the backgroundAlpha style.
Full code after the jump.
Continue reading ‘Creating semi-transparent ComboBox dropdown menus in Flex’