ActionScript Examples

A bunch of ActionScript 2.0 and ActionScript 3.0 examples*
  • About
  • Articles
  • Links

Getting started with the TLFTextField class in ActionScript 3.0 and Flash CS5

by Peter deHaan on May 3, 2010 · 12 Comments

The following examples show how you can get started with the TLFTextField class in ActionScript in Adobe Flash Professional CS5.

Continue Reading →

Adding tick marks to a Slider control in Flash using ActionScript 3.0

by Peter deHaan on March 7, 2009 · 3 Comments

The following example shows how you can add tick marks to a Flash/ActionScript 3.0 Slider control by setting the tickInterval property. Full code after the jump.

Continue Reading →

Creating a vertical Slider control in Flash using ActionScript 3.0

by Peter deHaan on March 5, 2009 · 10 Comments

The following example shows how you can create a horizontal or vertical Slider control in Flash using ActionScript 3.0 by setting the Slider control’s direction property to one of the static constants in the fl.controls.SliderDirection class (SliderDirection.HORIZONTAL or SliderDirection.VERTICAL). Full code after the jump.

Continue Reading →

Creating a custom context menu item in Flash using ActionScript 3.0

by Peter deHaan on March 5, 2009 · 1 Comments

The following example shows how you can add a custom context menu item to a Sprite object by setting the Sprite’s contextMenu property to a ContextMenu object. Full code after the jump.

Continue Reading →

Rotating a Sprite object around its x-axis in Flash using ActionScript 3.0 and Flash Player 10

by Peter deHaan on February 26, 2009 · 1 Comments

The following example shows how you can 3D rotate a Sprite object around its x-axis with Flash, ActionScript 3.0, and Flash Player 10 by setting the object’s rotationX property. Full code after the jump.

Continue Reading →

Detecting when the user changes the color in a ColorPicker control in Flash using ActionScript 3.0

by Peter deHaan on December 28, 2008 · 0 Comments

The following example shows how you can detect when the selected color in a Flash ActionScript 3.0 ColorPicker component by listening for the change event (using the static ColorPickerEvent.CHANGE constant). Full code after the jump.

Continue Reading →

Getting the currently selected color as a hexadecimal value on a ColorPicker control in Flash using ActionScript 3.0

by Peter deHaan on December 23, 2008 · 0 Comments

The following example shows how you can get the currently selected color as a hexadecimal value on a Flash ActionScript 3.0 ColorPicker component by using the read-only hexValue property. Full code after the jump.

Continue Reading →

Toggling the text field on the ColorPicker control in Flash using ActionScript 3.0

by Peter deHaan on December 23, 2008 · 0 Comments

The following example shows how you can toggle the text field on the Flash ActionScript 3.0 ColorPicker control by setting the Boolean showTextField property. Full code after the jump.

Continue Reading →

Creating a vertical Slider control in Flash using ActionScript 3.0

by Peter deHaan on December 23, 2008 · 5 Comments

The following example shows how you can create a vertical Flash ActionScript 3.0 Slider component by setting the direction property to one of the static constants in the SliderDirection class. Full code after the jump.

Continue Reading →

Setting the number of columns on a ColorPicker control in Flash using ActionScript 3.0

by Peter deHaan on December 23, 2008 · 1 Comments

The following example shows how you can set the number of columns on a Flash ActionScript 3.0 ColorPicker control’s pop up menu by setting the columnCount style. Full code after the jump.

Continue Reading →
← Previous Entries
  • http://www.playerversion.com/ http://get.adobe.com/flashplayer/
  • Platform ActionScript Language Reference
  • Recent Posts

    • Getting started with the TLFTextField class in ActionScript 3.0 and Flash CS5
    • Adding tick marks to a Slider control in Flash using ActionScript 3.0
    • Creating a vertical Slider control in Flash using ActionScript 3.0
    • Creating a custom context menu item in Flash using ActionScript 3.0
    • Rotating a Sprite object around its x-axis in Flash using ActionScript 3.0 and Flash Player 10
    • Detecting when the user changes the color in a ColorPicker control in Flash using ActionScript 3.0
    • Getting the currently selected color as a hexadecimal value on a ColorPicker control in Flash using ActionScript 3.0
    • Toggling the text field on the ColorPicker control in Flash using ActionScript 3.0
    • Creating a vertical Slider control in Flash using ActionScript 3.0
    • Setting the number of columns on a ColorPicker control in Flash using ActionScript 3.0
  • Categories

    • Bitmap (1)
    • Components (72)
      • Button (19)
      • CheckBox (2)
      • ColorPicker (6)
      • ComboBox (1)
      • DataGrid (8)
      • FLVPlayback (7)
      • Label (9)
      • ProgressBar (2)
      • Slider (3)
      • TextArea (1)
      • TextInput (7)
      • UILoader (7)
    • ContextMenu (1)
    • Embed (4)
    • ExternalInterface (2)
    • Flex (7)
    • Font (2)
    • General (5)
    • Graphics (2)
    • JSFL (14)
    • Loader (3)
    • LoadVars (3)
    • Microphone (1)
    • migration (12)
    • MovieClip (1)
    • MovieClipLoader (1)
    • Sound (2)
    • TextField (1)
    • TLFTextField (1)
    • TransitionManager (1)
    • Tween (1)
    • Uncategorized (1)
    • URLLoader (4)
    • URLVariables (1)
    • Video (1)
    • XML (2)
  • Enter your email address:

    Delivered by FeedBurner

  • Advertising

" RT @JavaScriptDaily: Getting started with TDD (test driven development) in JavaScript: http://t.co/fiyAD7na (rather surface level, but a ... " — pdehaan
ActionScript Examples

Pages

  • About
  • Articles
  • Links

The Latest

  • Getting started with the TLFTextField class in ActionScript 3.0 and Flash CS5
    The following examples show how you can get started with the TLFTextField […]

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