Flex Examples
Just a bunch of Adobe Flex Examples
  • Books
  • About Me
  • About You
  • Tags
  • Links
  • Flex 3 (Codename: Moxie)
  • Flex 4 (Codename: Gumbo)
  • Flex Hero
  • Colophon

Calculating the number of days between two selected dates in a DateChooser control

By Peter deHaan On July 31, 2007 · 26 Comments

Here’s a marginally more interesting sample. I was playing around with the DateChooser (calendar) control and the selectableRange property and figured I’d make a simple application to calculate the differences between two selected dates. The example creates a selectable range of dates from the current date to current date plus 1 year. Users can select [...]

Continue Reading →

Using the ColorPicker control’s colorField and labelField properties

By Peter deHaan On July 31, 2007 · Leave a Comment

In a previous post, “Formatting colors as strings with ActionScript“, A reader asked about the ColorPicker component. So here’s a quick little example of creating a ColorPicker control, as well as setting the labelField and colorField properties to display color names in the ColorPicker control.

Continue Reading →

Formatting dates using the DateFormatter

By Peter deHaan On July 30, 2007 · 2 Comments

Another basic little example showing how to format the text in a DateField control using the DateFormatter and the DateField control’s labelFunction property. This entry also shows the pretty basic trick of creating a separate ActionScript class file that holds the day names as constants so you don’t constantly have to think whether Monday is [...]

Continue Reading →

Changing the calendar layout in the DateChooser component using the firstDayOfWeek parameter

By Peter deHaan On July 30, 2007 · Leave a Comment

A brief example of changing the first day of the week for the DateChooser control using the firstDayOfWeek property.

Full code after the jump.

 

Continue Reading →

Creating ActionScript cue points with the VideoDisplay control

By Peter deHaan On July 29, 2007 · 15 Comments

A simple example of creating and using ActionScript cue points with the VideoDisplay control. The example uses a VideoDisplay control to display the progressively downloaded video, a ProgressBar to display the amount of video that has played back, and two DataGrid controls to show ActionScript cue points and embedded cue points.

Full code after the [...]

Continue Reading →

Loading name/value pairs using the mx:HTTPService tag

By Peter deHaan On July 28, 2007 · Leave a Comment

Semi-related to my previous post, I was playing around and figured out a way (probably not the best method) for loading a page of remote name/value pairs and putting them in a DataGrid using the HTTPService tag.

Full code after the jump

Continue Reading →

Loading files using the URLLoader and URLVariables classes

By Peter deHaan On July 28, 2007 · 15 Comments

Not sure if this is helpful to anybody, but thought I’d throw it out there. The following basic example loads some random variables from an external text file and displays the events which were dispatched in a DataGrid control, as well as the loaded name/value pairs.

Full code after the jump.

Continue Reading →

Downloading files in Flex using the FileReference class

By Peter deHaan On July 28, 2007 · 57 Comments

OK, enough embedding examples, lets take a look at downloading files using Flash Player’s FileReference class (flash.net.FileReference). This example demonstrates a basic usage of the FileReference class within Flex, allowing users to download a file from the server. This example also shows how you can use data tips in the DataGrid control by setting the [...]

Continue Reading →

Converting an image to black and white using the ColorMatrixFilter

By Peter deHaan On July 27, 2007 · Leave a Comment

A quick example of converting an image to black and white using the ColorMatrixFilter class. This was originally written for the Flash documentation’s “Learning ActionScript 2.0″ book (click here), but I ported our sample to Flex below.

For more information on [...]

Continue Reading →

Loading XML at run-time using the mx:HTTPService tag

By Peter deHaan On July 27, 2007 · 15 Comments

In the previous post we looked at how to load an XML document in at compile-time and have it embedded in our Flex application. But that technique really only works if the XML data in question never changes. What if you had an XML document that was constantly changing on a daily, or hourly, basis. [...]

Continue Reading →

Displaying XML data in a DataGrid

By Peter deHaan On July 26, 2007 · 33 Comments

OK, hopefully this example is a bit more interesting than a few of my previous ones. Today’s handy tip comes in the form of loading and embedding an XML file in our Flex application at compile-time (as opposed to dynamically loading at run-time, which we’ll save for a future example), and displaying that information in [...]

Continue Reading →

Filing bugs in the Flex public bugbase

By Peter deHaan On July 26, 2007 · Leave a Comment

So by now you’ve undoubtedly played around with either Flex 2.0.1, or the Flex 3 beta and you may or may not have encountered what you suspect is a bug. What next? Well, enter the public bugbase, JIRA. You can find the public Adobe Flex Builder and Flex SDK bugbase over at http://bugs.adobe.com/flex/, and you’re greeted [...]

Continue Reading →
← Previous Entries
  • Categories

    • Accordion
    • AccordionHeader
    • ActionScript
    • AddChild
    • AdvancedDataGrid
    • Alert
    • alpha
    • Animate
    • AnimateProperties
    • Application
    • Application (Spark)
    • ArrayCollection
    • BarChart
    • baseColor
    • beta
    • beta1
    • beta2
    • Bitmap
    • Bitmap/BitmapData
    • BitmapData
    • BitmapFill
    • BitmapFill (Spark)
    • BitmapGraphic
    • BitmapImage
    • BitmapImage (Spark)
    • BitmapImageResizeMode
    • Border (Spark)
    • BorderContainer (Spark)
    • Box
    • BuildInfo
    • Button
    • Button (Spark)
    • ButtonBar
    • ButtonBar (Spark)
    • ByteArray
    • Camera
    • Charting
    • CheckBox
    • CheckBox (Spark)
    • ClassFactory
    • CollectionEvent
    • Color
    • ColorPicker
    • ColorUtil
    • ComboBox
    • ComboBoxArrowSkin
    • Compiler
    • Component
    • Component (Spark)
    • Configuration
    • Container
    • ContextMenu
    • ContextMenuEvent
    • ContextMenuItem
    • CSSCondition
    • CSSSelector
    • CSSStyleDeclaration
    • CurrencyFormatter
    • CursorManager
    • Data Binding
    • DataGrid
    • DataGrid (Spark)
    • DataGridColumn
    • Date
    • DateBase
    • DateChooser
    • DateField
    • DateFormatter
    • Debugging
    • DefaultComplexItemRenderer
    • DefaultTileListEffect
    • DropDownList
    • DropDownList (Spark)
    • DropDownListButtonSkin
    • DropDownListSkin
    • DropShadowFilter
    • E4X
    • Effects
    • Ellipse
    • EmailValidator
    • Embed
    • Event
    • Fade
    • FileFilter
    • FileReference
    • fill
    • Filters
    • Flash
    • Flash Integration
    • FlashVars
    • Flex 3 SDK
    • Flex Builder
    • Flex Builder 3
    • Flex SDK
    • Flex4
    • FLVPlayback
    • FocusManager
    • FontLookup
    • Fonts
    • Form
    • Form (Spark)
    • FormHeading (Spark)
    • FormItem
    • FormItem (Spark)
    • Forms
    • FTETextField (Spark)
    • FullScreen
    • FullScreenEvent
    • FxAnimateColor
    • FxButtonBar
    • FxCheckBox
    • FXG
    • FxHScrollBar
    • FxHSlider
    • FxList
    • FxNumericStepper
    • FxRadioButton
    • FxRotate3D
    • FxScroller
    • FxTextArea
    • FxTextInput
    • FxToggleButton
    • FxVScrollBar
    • FxVSlider
    • getStyleDeclaration()
    • GradientEntry
    • Graphic (Spark)
    • HBox
    • HDividedBox
    • HGroup (Spark)
    • HorizontalLayout
    • HorizontalList
    • HSBColor (Spark)
    • HScrollBar (Spark)
    • HSlider
    • HSlider (Spark)
    • HTML template
    • ID3Info
    • Image
    • Image (Spark)
    • ImageSnapshot
    • itemRenderer
    • JointStyle
    • Label
    • Label (Spark)
    • Legend
    • LegendItem
    • LigatureLevel
    • Line
    • LinearGradientStroke
    • LineScaleMode
    • LinkBar
    • LinkButton
    • List
    • List (Spark)
    • Menu
    • MenuBar
    • Metadata
    • MetadataEvent
    • Model
    • Mouse
    • MouseCursor
    • MouseEvent
    • Move
    • Namespace
    • NavigatorContent (Spark)
    • needsSWF
    • NetConnection
    • NetStream
    • Nightly Builds
    • NumberBaseRoundType
    • NumberFormatter
    • NumberValidator
    • NumericCompare
    • NumericStepper
    • NumericStepper (Spark)
    • ObjectProxy
    • ObjectUtil
    • paddingLeft
    • paddingRight
    • Panel
    • Panel (Spark)
    • Parallel
    • Path
    • PieChart
    • PieSeries
    • PieSeriesItem
    • PopUpAnchor (Spark)
    • PopUpButton
    • PopUpManager
    • ProgrammaticSkin
    • ProgressBar
    • PropertyChangeEvent
    • QName
    • RadialGradient
    • RadioButton
    • RadioButton (Spark)
    • RadioButtonGroup
    • RadioButtonGroup (Spark)
    • Rect
    • RegExp
    • Regular Expressions
    • Repeater
    • RichEditableText
    • RichText
    • RichText (Spark)
    • RichTextEditor
    • Rotate
    • Rotate3D (Spark)
    • Scroller (Spark)
    • Sequence
    • setStyle()
    • SimpleText
    • SimpleText (Spark)
    • skinClass
    • Slider
    • SliderEvent
    • SolidColor
    • SolidColorStroke
    • Sort
    • SortField
    • Sound
    • SoundEffect
    • Spinner (Spark)
    • SpriteVisualElement (Spark)
    • StageDisplayState
    • States
    • StringUtil
    • StringValidator
    • StyleManager
    • Styles
    • SWFLoader
    • SWFObject
    • System
    • SystemManager
    • TabBar
    • TabBar (Spark)
    • TabNavigator
    • TabStopFormat
    • Text
    • Text Layout Framework (TLF)
    • TextArea
    • TextArea (Spark)
    • TextBox
    • TextConverter
    • TextEvent
    • TextFlow
    • TextFlowUtil
    • TextFormat
    • TextGraphic
    • TextInput
    • TextInput (Spark)
    • TextLayoutFormat
    • TextView
    • Themes
    • TileLayout
    • TileList
    • TileOrientation
    • Timer
    • TitleWindow
    • TitleWindow (Spark)
    • TLF
    • ToggleButton (Spark)
    • ToggleButtonBar
    • ToolTip
    • Transition
    • Tree
    • TruncationOptions
    • UIComponent
    • UIFTETextField
    • Updater
    • URLLoader
    • URLRequest
    • URLUtil
    • URLVariables
    • ValidationResultEvent
    • Validator
    • Validators
    • VBox
    • VDividedBox
    • Vector
    • VerticalLayout
    • VerticalLayout (Spark)
    • VGroup (Spark)
    • Video
    • VideoDisplay
    • VideoElement
    • VideoElement (Spark)
    • VideoEvent
    • VideoPlayer (Spark)
    • VideoPlayerScrubBar
    • ViewStack
    • VScrollBar (Spark)
    • VSlider
    • VSlider (Spark)
    • XML
    • XMLList
    • XMLListCollection
    • ZipCodeValidator
    • ZipCodeValidatorDomainType
    • Zoom
  • Articles

    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
  • Calendar

    July 2007
    M T W T F S S
        Aug »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
  • Meta

    • Log in
    • Entries (RSS)
"No public Twitter messages." — pdehaan
Flex Examples

Pages

  • Books
  • About Me
  • About You
  • Tags
  • Links
  • Flex 3 (Codename: Moxie)
  • Flex 4 (Codename: Gumbo)
  • Flex Hero
  • Colophon

The Latest

  • Setting the icon placement on a Spark Button control in Flex Hero
    In a previous example, “Setting an icon on a Spark Button in […]

More

  • Flex Examples
  • ColdFusion Examples
  • ActionScript Examples
  • Adobe AIR Examples
This work is licensed under a Creative Commons Attribution 3.0 United States License.
PlatformPro by PageLines