Archive for October, 2008

31
Oct

Setting tab stops in an FxTextArea control in Flex Gumbo

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.

Continue reading ‘Setting tab stops in an FxTextArea control in Flex Gumbo’

30
Oct

Using graphical and text primitives in Flex Gumbo

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.

Continue reading ‘Using graphical and text primitives in Flex Gumbo’

29
Oct

Determining the size of your Flex application

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.

Continue reading ‘Determining the size of your Flex application’

29
Oct

Determining your Flex SDK version number

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.

Continue reading ‘Determining your Flex SDK version number’

28
Oct

Wrapping values on an FxSpinner control in Flex Gumbo

The following example shows how you can wrap values in a Flex FxSpinner control by setting the valueWrap property.

Full code after the jump.

Continue reading ‘Wrapping values on an FxSpinner control in Flex Gumbo’

27
Oct

Setting the value interval on a FxHSlider control in Flex Gumbo

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.

Continue reading ‘Setting the value interval on a FxHSlider control in Flex Gumbo’

26
Oct

Aligning text vertically within an FxTextArea control in Flex Gumbo

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.

Continue reading ‘Aligning text vertically within an FxTextArea control in Flex Gumbo’

25
Oct

Incrementally 3D rotating objects in Flex using the FxRotate3D in Flex

In a previous example, “3D Rotating objects in Flex using the FxRotate3D 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 Flex FxRotate3D effect in the beta Flex Gumbo SDK.

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

Full code after the jump.

Continue reading ‘Incrementally 3D rotating objects in Flex using the FxRotate3D in Flex’

24
Oct

Creating strikethrough text on a TextGraphic control in Flex Gumbo

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.

Continue reading ‘Creating strikethrough text on a TextGraphic control in Flex Gumbo’

23
Oct

Setting the vertical gap in a vertical layout in Flex Gumbo

The following example shows how you can set the vertical gap between items in a Flex Gumbo VerticalLayout by setting the gap property.

Full code after the jump.

Continue reading ‘Setting the vertical gap in a vertical layout in Flex Gumbo’

22
Oct

Setting text alignment on an FxTextArea control in Flex Gumbo

The following example shows how you can set the text alignment and text direction in a Flex FxTextArea control by setting the textAlign and direction styles.

Full code after the jump.

Continue reading ‘Setting text alignment on an FxTextArea control in Flex Gumbo’

21
Oct

Setting the ligature level on an FxTextInput control in Flex Gumbo

In earlier examples, “Embedding fonts in Flex Gumbo” and “Setting the typographic case on an FxTextArea 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 Flex FxTextInput control in Gumbo by setting the ligatureLevel style to one of the static constants in the flash.text.engine.LigatureLevel class.

Full code after the jump.

Continue reading ‘Setting the ligature level on an FxTextInput control in Flex Gumbo’

20
Oct

Setting the typographic case on an FxTextArea control in Flex Gumbo

The following example shows how you can set the typographic case on a Flex FxTextArea control in Gumbo by setting the typographicCase style to one of the static constants in the flash.text.engine.TypographicCase class.

Full code after the jump.

Continue reading ‘Setting the typographic case on an FxTextArea control in Flex Gumbo’

19
Oct

Toggling the drop shadow on a Panel container in Flex

The following example shows how you can toggle the drop shadow on a Flex Panel container by setting the dropShadowEnabled style.

Full code after the jump.

Continue reading ‘Toggling the drop shadow on a Panel container in Flex’

18
Oct

Adding a title icon to a Panel container in Flex

The following example shows how you can add an icon to a Flex Panel container’s title bar by setting the titleIcon property.

Full code after the jump.

Continue reading ‘Adding a title icon to a Panel container in Flex’