<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>ActionScript Examples</title>
	
	<link>http://actionscriptexamples.com</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Sat, 07 Mar 2009 08:26:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ActionscriptExamples" type="application/rss+xml" /><feedburner:emailServiceId>ActionscriptExamples</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Adding tick marks to a Slider control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/MGZV7mp5omo/</link>
		<comments>http://actionscriptexamples.com/2009/03/07/adding-tick-marks-to-a-slider-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 08:26:17 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Slider]]></category>
		<category><![CDATA[tickInterval]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=348</guid>
		<description>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.


// ActionScript 3.0
/**
 * Requires:
 * - Slider control in the Flash library.
 */
import fl.controls.Slider;
&amp;#160;
var slider:Slider = new Slider&amp;#40;&amp;#41;;
slider.tickInterval = 1;
slider.move&amp;#40;20, 20&amp;#41;;
addChild&amp;#40;slider&amp;#41;;&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/MGZV7mp5omo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2009/03/07/adding-tick-marks-to-a-slider-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2009/03/07/adding-tick-marks-to-a-slider-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Creating a vertical Slider control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/kswwOLD1zaY/</link>
		<comments>http://actionscriptexamples.com/2009/03/05/creating-a-vertical-slider-control-in-flash-using-actionscript-30-2/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:10:29 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Slider]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[SliderDirection]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=345</guid>
		<description>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&amp;#8217;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.


// ActionScript 3.0
import fl.controls.ComboBox;
import fl.controls.Slider;
import fl.controls.SliderDirection;
import fl.data.DataProvider;
&amp;#160;
var dp:DataProvider = new DataProvider&amp;#40;&amp;#41;;
dp.addItem&amp;#40;&amp;#123;label:SliderDirection.HORIZONTAL&amp;#125;&amp;#41;;
dp.addItem&amp;#40;&amp;#123;label:SliderDirection.VERTICAL&amp;#125;&amp;#41;;
&amp;#160;
var comboBox:ComboBox = [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/kswwOLD1zaY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2009/03/05/creating-a-vertical-slider-control-in-flash-using-actionscript-30-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2009/03/05/creating-a-vertical-slider-control-in-flash-using-actionscript-30-2/</feedburner:origLink></item>
		<item>
		<title>Creating a custom context menu item in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/OFgh1o9x1eg/</link>
		<comments>http://actionscriptexamples.com/2009/03/05/creating-a-custom-context-menu-item-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 08:23:10 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ContextMenu]]></category>
		<category><![CDATA[ContextMenuEvent]]></category>
		<category><![CDATA[ContextMenuItem]]></category>
		<category><![CDATA[customItems]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[hideBuiltInItems()]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=342</guid>
		<description>The following example shows how you can add a custom context menu item to a Sprite object by setting the Sprite&amp;#8217;s contextMenu property to a ContextMenu object.
Full code after the jump.


// ActionScript 3.0
var red_cmi:ContextMenuItem = new ContextMenuItem&amp;#40;&amp;#34;red&amp;#34;&amp;#41;;
red_cmi.addEventListener&amp;#40;ContextMenuEvent.MENU_ITEM_SELECT, cmi_menuItemSelect&amp;#41;;
&amp;#160;
var cm:ContextMenu = new ContextMenu&amp;#40;&amp;#41;;
cm.customItems.push&amp;#40;red_cmi&amp;#41;;
cm.hideBuiltInItems&amp;#40;&amp;#41;;
&amp;#160;
var spr:Sprite = new Sprite&amp;#40;&amp;#41;;
spr.contextMenu = cm;
spr.graphics.beginFill&amp;#40;0x000000&amp;#41;;
spr.graphics.drawRect&amp;#40;0, 0, 120, 90&amp;#41;;
spr.graphics.endFill&amp;#40;&amp;#41;;
spr.x = 10;
spr.y = 10;
addChild&amp;#40;spr&amp;#41;;
&amp;#160;
function [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/OFgh1o9x1eg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2009/03/05/creating-a-custom-context-menu-item-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2009/03/05/creating-a-custom-context-menu-item-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Rotating a Sprite object around its x-axis in Flash using ActionScript 3.0 and Flash Player 10</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/Er76LsE3L9g/</link>
		<comments>http://actionscriptexamples.com/2009/02/26/rotating-a-sprite-object-around-its-x-axis-in-flash-using-actionscript-30-and-flash-player-10/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 03:45:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Slider]]></category>
		<category><![CDATA[drawRect()]]></category>
		<category><![CDATA[rotationX]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=338</guid>
		<description>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&amp;#8217;s rotationX property.
Full code after the jump.


// http://actionscriptexamples.com/2009/02/26/rotating-a-sprite-object-around-its-x-axis-in-flash-using-actionscript-30-and-flash-player-10/
// ActionScript 3.0
/** Requires:
 *  - Slider control in Flash library.
 *  - Publish for Flash Player 10.
 */
&amp;#160;
&amp;#91;SWF&amp;#40;width=&amp;#34;400&amp;#34;, height=&amp;#34;300&amp;#34;&amp;#41;&amp;#93;
&amp;#160;
import [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/Er76LsE3L9g" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2009/02/26/rotating-a-sprite-object-around-its-x-axis-in-flash-using-actionscript-30-and-flash-player-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2009/02/26/rotating-a-sprite-object-around-its-x-axis-in-flash-using-actionscript-30-and-flash-player-10/</feedburner:origLink></item>
		<item>
		<title>Detecting when the user changes the color in a ColorPicker control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/Qy-vBz0FUDU/</link>
		<comments>http://actionscriptexamples.com/2008/12/28/detecting-when-the-user-changes-the-color-in-a-colorpicker-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 16:03:20 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[ColorPickerEvent]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=315</guid>
		<description>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.


// ActionScript 3.0
/* Requires:
 * - ColorPicker control in the Flash library
 */
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
&amp;#160;
var bg:Sprite = new Sprite&amp;#40;&amp;#41;;
bg.graphics.beginFill&amp;#40;0x000000&amp;#41;;
bg.graphics.drawRect&amp;#40;0, 0, stage.stageWidth, stage.stageHeight&amp;#41;;
bg.graphics.endFill&amp;#40;&amp;#41;;
addChild&amp;#40;bg&amp;#41;;
&amp;#160;
var [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/Qy-vBz0FUDU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/28/detecting-when-the-user-changes-the-color-in-a-colorpicker-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/28/detecting-when-the-user-changes-the-color-in-a-colorpicker-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Getting the currently selected color as a hexadecimal value on a ColorPicker control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/K-SCrIvCQe0/</link>
		<comments>http://actionscriptexamples.com/2008/12/23/getting-the-currently-selected-color-as-a-hexadecimal-value-on-a-colorpicker-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 22:33:36 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[hexValue]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=327</guid>
		<description>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.


// ActionScript 3.0
/* Requires:
 * - ColorPicker control in Flash library
 * - Label control in Flash library
 */
import fl.controls.ColorPicker;
import fl.controls.Label;
import fl.events.ColorPickerEvent;
&amp;#160;
var colorPicker:ColorPicker [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/K-SCrIvCQe0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/23/getting-the-currently-selected-color-as-a-hexadecimal-value-on-a-colorpicker-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/23/getting-the-currently-selected-color-as-a-hexadecimal-value-on-a-colorpicker-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Toggling the text field on the ColorPicker control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/8x7YDW2OR9U/</link>
		<comments>http://actionscriptexamples.com/2008/12/23/toggling-the-text-field-on-the-colorpicker-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 18:46:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[showTextField]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=324</guid>
		<description>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.


// ActionScript 3.0
/* Requires:
 * - CheckBox control in Flash library
 * - ColorPicker control in Flash library
 */
import fl.controls.CheckBox;
import fl.controls.ColorPicker;
&amp;#160;
var checkBox:CheckBox = new CheckBox&amp;#40;&amp;#41;;
checkBox.selected = true;
checkBox.label = [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/8x7YDW2OR9U" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/23/toggling-the-text-field-on-the-colorpicker-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/23/toggling-the-text-field-on-the-colorpicker-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Creating a vertical Slider control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/QODAd-jmSUM/</link>
		<comments>http://actionscriptexamples.com/2008/12/23/creating-a-vertical-slider-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 18:31:24 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[Slider]]></category>
		<category><![CDATA[SliderDirection]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=322</guid>
		<description>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.


// ActionScript 3.0
/* Requires:
 * - Slider control in Flash library
 */
import fl.controls.Slider;
import fl.controls.SliderDirection;
&amp;#160;
var slider:Slider = new Slider&amp;#40;&amp;#41;;
slider.direction = SliderDirection.VERTICAL;
slider.tickInterval = 1;
slider.move&amp;#40;20, [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/QODAd-jmSUM" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/23/creating-a-vertical-slider-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/23/creating-a-vertical-slider-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Setting the number of columns on a ColorPicker control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/SHBnc5WAlts/</link>
		<comments>http://actionscriptexamples.com/2008/12/23/setting-the-number-of-columns-on-a-colorpicker-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 18:21:35 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[columnCount]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=319</guid>
		<description>The following example shows how you can set the number of columns on a Flash ActionScript 3.0 ColorPicker control&amp;#8217;s pop up menu by setting the columnCount style.
Full code after the jump.


// ActionScript 3.0
/* Requires:
 * - ColorPicker control in Flash library
 * - Slider control in Flash library
 */
import fl.controls.ColorPicker;
import fl.controls.Slider;
import fl.events.SliderEvent;
&amp;#160;
var slider:Slider = new [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/SHBnc5WAlts" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/23/setting-the-number-of-columns-on-a-colorpicker-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/23/setting-the-number-of-columns-on-a-colorpicker-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
		<item>
		<title>Changing the data provider on the ColorPicker control in Flash using ActionScript 3.0</title>
		<link>http://feedproxy.google.com/~r/ActionscriptExamples/~3/HmxLbeO9TxA/</link>
		<comments>http://actionscriptexamples.com/2008/12/23/changing-the-data-provider-on-the-colorpicker-control-in-flash-using-actionscript-30/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 17:38:24 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ColorPicker]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[columnCount]]></category>

		<guid isPermaLink="false">http://actionscriptexamples.com/?p=316</guid>
		<description>The following example shows how you can set the data provider for the Flash ActionScript 3.0 ColorPicker component by setting the colors property.
Full code after the jump.


// ActionScript 3.0
/* Requires:
 * - ColorPicker control in Flash library
 */
var arr:Array = &amp;#91;0x000000, 0x110000, 0x220000, 0x330000, 
           [...]&lt;img src="http://feeds.feedburner.com/~r/ActionscriptExamples/~4/HmxLbeO9TxA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://actionscriptexamples.com/2008/12/23/changing-the-data-provider-on-the-colorpicker-control-in-flash-using-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://actionscriptexamples.com/2008/12/23/changing-the-data-provider-on-the-colorpicker-control-in-flash-using-actionscript-30/</feedburner:origLink></item>
	</channel>
</rss>
