The following example shows how you can set a linear gradient stroke on a Flex Gumbo Rect object by setting the stroke property to a LinearGradientStroke object.
Full code after the jump.
Continue reading ‘Creating a linear gradient stroke on a Rect object in Flex Gumbo’
The following example shows how you can maintain a loaded video’s original aspect ratio on a Flex VideoDisplay control by setting the maintainAspectRatio property.
Full code after the jump.
Continue reading ‘Maintaining an video’s aspect ratio on a VideoDisplay control in Flex’
The following example shows how you can determine the length of an FLV video (in seconds) using the Flex VideoDisplay control by using the totalTime property.
Full code after the jump.
Continue reading ‘Determining the length of an FLV video using the VideoDisplay control in Flex’
The following example shows how you can toggle data tips on the Flex HSlider control by setting the Boolean showDataTips property.
Full code after the jump.
Continue reading ‘Toggling data tips on the HSlider control in Flex’
The following example shows how you can prevent a user from clicking on the track of a Flex HSlider control by setting the Boolean allowTrackClick property.
Full code after the jump.
Continue reading ‘Preventing a user from clicking the track on an HSlider control in Flex’
The following example shows how you can set the label offset on a Flex VSlider control by setting the labelOffset style.
Full code after the jump.
Continue reading ‘Setting the label offset on a VSlider control in Flex’
The following example shows how you can set the label offset on a Flex HSlider control by setting the labelOffset style.
Full code after the jump.
Continue reading ‘Setting the label offset on an HSlider control in Flex’
The following example shows how you can set the focal point on a Flex Gumbo Rect object by setting the focalPointRatio property to a value between -1 and +1.
Full code after the jump.
Continue reading ‘Setting the focal point on a Rect object in Flex Gumbo’
In a previous example, “Creating a radial gradient fill on a Rect object in Flex Gumbo”, we saw how you could create a radial gradient fill on a Flex Gumbo Rect object by setting the fill property to a RadialGradient object.
The following example shows how you can set the origin X and Y coordinate for a radial gradient fill in Flex Gumbo by setting the x and y properties on the RadialGradient object.
Full code after the jump.
Continue reading ‘Setting the origin X and Y coordinate for a radial gradient fill in Flex Gumbo’
In a previous example, “Creating a linear gradient fill on an Ellipse object in Flex Gumbo”, we saw you could create a linear gradient fill on a Flex Gumbo Ellipse object by setting the fill property to a LinearGradient object.
The following example shows how you can create a radial gradient fill on a Flex Gumbo Rect object by setting the fill property to a RadialGradient object.
Full code after the jump.
Continue reading ‘Creating a radial gradient fill on a Rect object in Flex Gumbo’
The following example shows how you can set the type of text justification on a Flex Gumbo TextBox object by setting the textJustify style to one of the static constants in the flashx.textLayout.formats.TextJustify class.
Full code after the jump.
Continue reading ‘Setting the text justification on a TextBox object in Flex Gumbo’
The following example shows how you can use a custom configuration file in a Flex Builder Flex project by specifying an additional compiler argument, -load-config.
Full code after the jump.
Continue reading ‘Using a custom flex-config.xml file in Flex Builder 3′
The following example shows how you can smooth a Flex Gumbo BitmapGraphic object by setting the Boolean smooth property.
Full code after the jump.
Continue reading ‘Smoothing images using the BitmapGraphic object in Flex Gumbo’
The following example shows how you can set the content background color of a Flex Gumbo Spark TextInput control by setting the contentBackgroundColor style.
Full code after the jump.
Continue reading ‘Setting the content background color on a Spark TextInput control in Flex Gumbo’
The following example shows how you can set the digit case on a Flex Gumbo TextBox object by setting the digitCase style.
Full code after the jump.
Continue reading ‘Setting the digit case on a TextBox object in Flex Gumbo’