Products
Technologies

Developer resources

Search Cookbooks for Peter deHaan (Adobe)

Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0

    Setting the focus thickness on a NumericStepper control in F ...

    The following example shows how you can set the focus thickness of the focus rectangle by setting the focusThickness style on the Flex NumericStepper control.

  2. Avg. Rating 5.0

    Using embedded fonts with the Accordion container in Flex

    The following examples show how you can use an embedded font with the Flex Accordion container by setting the headerStyleName style.

  3. Avg. Rating 5.0

    Styling individual FormItem labels using the labelStyleName ...

    The following example shows you how you can style individual labels in a FormItem container in Flex by setting the labelStyleName style.

  4. Avg. Rating 4.8

    Opening branches by clicking rows in a Tree control in Flex

    The following example shows how you can expand/collapse branches in a Flex Tree control by clicking on the row instead of having to click on the disclosure/arrow icon.

  5. Avg. Rating 4.7

    Converting an array of String objects to an array of Object ...

    The following example shows how you can convert an array of String objects (with duplicate entries) to an array of Object objects using a simple loop and the Array.map() method, so the Object array can be used as a data provider in a List based control.

  6. Avg. Rating 4.5
  7. Avg. Rating 4.5

    Taking screenshots of the display list in Flex 3 using the s ...

    The following example shows how you can take a snapshot of an item on the display list using the static ImageSnapshot.captureBitmapData() method, which returns a BitmapData object, as seen in the following snippet: var imageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(source); swfLoader.s ...

  8. Avg. Rating 4.5

    Toggling year navigation on a DateChooser control in Flex

    The following example shows how you can toggle year-based navigation on a Flex DateChooser control by setting the yearNavigationEnabled property in MXML and ActionScript.

  9. Avg. Rating 4.3

    Displaying video in Flex Gumbo

    The following example shows how you can use the chromeless VideoElement control in Flex Gumbo to display a video.

  10. Avg. Rating 4.2

    Using embedded fonts with tool tips in Flex

    You can embed the desired font using an <mx:Style /> block, and then specify the embedded font family name in the fontFamily style on the .errorTip selector. Next, set the errorString property on the desired component which will set the error tool tip. Finally, we use the toolTipShown event to ...