From the monthly archives:

October 2008

The following example shows how you can set tab stops in a Flex Gumbo FxTextArea control by setting the tabStops style to an array of TabStopFormat objects.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows you how to draw an ellipse in a Flex Gumbo application using the new Ellipse graphic primitive in FXG.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows how you can determine the total bytes of your Flex application by accessing the loaderInfo.bytesTotal property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can determine your Flex SDK version within a Flex application by using the internal mx_internal::VERSION property.

You can also find the version number by doing one of the following:
(a) Viewing the flex-sdk-description.xml file in your Flex SDK’s root directory:

<?xml version="1.0"?>
<flex-sdk-description>
    <name>Flex 4.0</name>
    <version>4.0.0</version>
    <build>3934</build>
</flex-sdk-description>

(b) At a command prompt, navigate to your Flex SDK’s /bin/ directory and type mxmlc -version:

C:\\dev\\flexSDKs\\4.0.0.3934\\bin>mxmlc -version
Version 4.0.0 build 3934

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can wrap values in a Spark Spinner control in Flex 4 by setting the Boolean allowValueWrap property.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can set the value interval on a Flex FxHSlider control in Gumbo by setting the stepSize and valueInterval properties.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can align text vertically within a Flex Gumbo FxTextArea control by setting the verticalAlign style.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “3D Rotating objects in Flex 4 using the Spark Rotate3D effect and Flash Player 10″, we saw how you could rotate objects in 3D space from 0 to 360 degrees along the X, Y, and Z axis using the Spark Rotate3D effect in the Flex 4 SDK.

The following example shows how you can rotate an image relative to its current rotation by setting the yBy property on the Spark Rotate3D instance.

Full code after the jump.

[click to continue…]

{ 16 comments }

Creating strikethrough text on a TextGraphic control in Flex Gumbo

by Peter deHaan October 24, 2008

The following example shows how you can create strikethrough text on a Flex TextGraphic control in Gumbo by setting the lineThrough style.
Full code after the jump.

Read the full article →

Setting the vertical gap in a vertical layout in Flex 4

by Peter deHaan October 23, 2008

The following example shows how you can set the vertical gap between items in a Flex 4 Spark VerticalLayout by setting the gap property.
Full code after the jump.

Read the full article →

Setting text alignment on a Spark TextArea control in Flex 4

by Peter deHaan October 22, 2008

The following example shows how you can set the text alignment and text direction in a Spark TextArea control in Flex 4 by setting the textAlign and direction styles.
Full code after the jump.

Read the full article →

Setting the ligature level on a Spark TextInput control in Flex Gumbo

by Peter deHaan October 21, 2008

In earlier examples, “Embedding fonts in Flex Gumbo” and “Setting the typographic case on a Spark TextArea control in Flex Gumbo”, we’ve seen how to embed fonts in Flex Gumbo.
The following example shows how you can set the ligature level on a Spark TextInput control in Flex 4/Gumbo by setting the ligatureLevel style to one [...]

Read the full article →