<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Code With Design &#187; AS3</title>
	<atom:link href="http://codewithdesign.com/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://codewithdesign.com</link>
	<description>web application development blog by Caleb Jonasson</description>
	<lastBuildDate>Thu, 15 Sep 2011 17:52:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Introduction to AS3: Variable types</title>
		<link>http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/</link>
		<comments>http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 10:03:05 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Introduction Series]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[variable types]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=266</guid>
		<description><![CDATA[TweetThe language of actionscript doesn’t use traditional variable types like advanced computer languages (java, C++, c.) Actionscript does things a little different. They like to be a little more generic since creating room in memory is not a heavy issue. Because of this the data types are a fair amount more user friendly. The variable [...]


Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/' rel='bookmark' title='Permanent Link: Introduction to flash AS3'>Introduction to flash AS3</a></li>
<li><a href='http://codewithdesign.com/2010/01/15/creating-user-input-with-menus-in-java/' rel='bookmark' title='Permanent Link: Creating user input with menus in java'>Creating user input with menus in java</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Introduction to AS3: Variable types" data-via="" data-url="http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/"></g:plusone><p>The language of actionscript doesn’t use traditional variable types like advanced computer languages (java, C++, c.) Actionscript does things a little different. They like to be a little more generic since creating room in memory is not a heavy issue. Because of this the data types are a fair amount more user friendly.</p>
<p>The variable types flash uses are as follows:</p>
<p>“<strong>Int</strong>” This stands for integer and can be a negative or positive and thus include 0. (-4,-3,-2,-1,0,1,2,3,4,5 are all examples of the int data type.)</p>
<p>“<strong>Uint</strong>” This is very similar to the int data type however it cannot hold negative numbers, or ‘0.’ It can only hold whole numbers.</p>
<p>‘<strong>Number</strong>’ A number can be any number. This include negatives, 0, positives, and decimal numbers (floating point) which is the equivalent of declaring a double, float, or single.</p>
<p>‘<strong>String</strong>’ This data type will display characters of text. An example of this would be “text,”</p>
<p>‘<strong>Array</strong>’ An array data type is more than one item in a variable. This means that could store a list of bowling scores.(1,6,2,4,2).</p>
<p>‘<strong>Boolean</strong>’ A Boolean data type traditionally takes up one bit of data because it only stores a 0, or a 1 which is interpreted to true or false.</p>
<p>‘<strong>Custom object</strong>’ This can be whatever you want and is declared as a variable type because it is stored in memory much like a variable. The difference is that this can store multiple variable types.</p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=266&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/' rel='bookmark' title='Permanent Link: Introduction to flash AS3'>Introduction to flash AS3</a></li>
<li><a href='http://codewithdesign.com/2010/01/15/creating-user-input-with-menus-in-java/' rel='bookmark' title='Permanent Link: Creating user input with menus in java'>Creating user input with menus in java</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Introduction to AS3: Creating the package.</title>
		<link>http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/</link>
		<comments>http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:44:18 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Introduction Series]]></category>
		<category><![CDATA[action script 3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=263</guid>
		<description><![CDATA[Tweet Setting up a package for your flash traditionally means that you will be going in the direction of object oriented programming. This means that you will be able to create different class files and use them as objects. The simplest way to look at this is using any general object such as a city. [...]


Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/' rel='bookmark' title='Permanent Link: Introduction to flash AS3'>Introduction to flash AS3</a></li>
<li><a href='http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/' rel='bookmark' title='Permanent Link: Introduction to AS3: Variable types'>Introduction to AS3: Variable types</a></li>
<li><a href='http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/' rel='bookmark' title='Permanent Link: Intro to AS3: Using Mouse Events to Control an Object'>Intro to AS3: Using Mouse Events to Control an Object</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Introduction to AS3: Creating the package." data-via="" data-url="http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/"></g:plusone><p class="MsoNormal"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-CA</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0cm; 	margin-right:0cm; 	margin-bottom:10.0pt; 	margin-left:0cm; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:EN-US;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:EN-US;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 72.0pt 72.0pt 72.0pt; 	mso-header-margin:35.4pt; 	mso-footer-margin:35.4pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin-top:0cm; 	mso-para-margin-right:0cm; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0cm; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} --> <!--[endif]-->Setting up a package for your flash traditionally means that you will be going in the direction of object oriented programming. This means that you will be able to create different class files and use them as objects.</p>
<p class="MsoNormal">The simplest way to look at this is using any general object such as a city. In order for the city to be properly run we will need an object for power grid, roads, and sewer system. These sub objects can be split up into their own classes and used in the main movie clip by setting up a package.</p>
<p class="MsoNormal">The basic package layout looks something like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#123;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;If this appears in the output you have done well.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span> <span style="color: #009900; font-style: italic;">// end of main function</span>
&nbsp;
<span style="color: #000000;">&#125;</span> <span style="color: #009900; font-style: italic;">// end of main</span>
&nbsp;
<span style="color: #000000;">&#125;</span> <span style="color: #009900; font-style: italic;">//end of package</span></pre></td></tr></table></div>

<p class="MsoNormal">Tip: When creating a swf object you need to make sure that you do not mix together AS1 and AS2 with action script 3. This is unlikely to happen if you are learning from scratch or teaching yourself but if you need to update a previous project then you will need to make sure you are not mixing levels of actionscript. This is caused by the way they are put together in the creation of the swf file.</p>
<p class="MsoNormal">Inside of this file you can add all of your movie clips and declare them as variables. You can also import all of the needed files along with create the code required to do what you would like to do.</p>
<p class="MsoNormal">The last thing that is required when creating a package is the link to your movie clip. You can create this link simply by clicking on the stage, making sure it is your default document, then adding the document class name as shown below.</p>
<p class="MsoNormal"><img class="alignnone size-full wp-image-264" title="intro_as3_package" src="http://codewithdesign.com/wp-content/uploads/2010/02/intro_as3_package.jpg" alt="" width="617" height="91" /></p>
<p class="MsoNormal">If everything is ok and your flash program runs you will have a line of confirmation in the output.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Introduction to flash AS3</div>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=263&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/' rel='bookmark' title='Permanent Link: Introduction to flash AS3'>Introduction to flash AS3</a></li>
<li><a href='http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/' rel='bookmark' title='Permanent Link: Introduction to AS3: Variable types'>Introduction to AS3: Variable types</a></li>
<li><a href='http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/' rel='bookmark' title='Permanent Link: Intro to AS3: Using Mouse Events to Control an Object'>Intro to AS3: Using Mouse Events to Control an Object</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to flash AS3</title>
		<link>http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/</link>
		<comments>http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:01:54 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Introduction Series]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[into]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[series]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=260</guid>
		<description><![CDATA[TweetThis is a quick briefing before going in depth on different bits and pieces of flash AS3. I will be creating a series of brief introductions into certain aspects and components of the language along with a tutorial using said component. All of the articles will consist of key notes and source code. These tutorials [...]


Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/' rel='bookmark' title='Permanent Link: Introduction to AS3: Variable types'>Introduction to AS3: Variable types</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
<li><a href='http://codewithdesign.com/2010/05/23/sql-%e2%80%93-an-introduction-to-keys/' rel='bookmark' title='Permanent Link: SQL – An introduction to Keys'>SQL – An introduction to Keys</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Introduction to flash AS3" data-via="" data-url="http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/"></g:plusone><p>This is a quick briefing before going in depth on different bits and pieces of flash AS3. I will be creating a series of brief introductions into certain aspects and components of the language along with a tutorial using said component.</p>
<p>All of the articles will consist of key notes and source code. These tutorials are a project in their own and will take up a fair amount of time. They will also receive their own section from the top menu and a brief updates in the projects section.</p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=260&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2010/02/08/introduction-to-as3-variable-types/' rel='bookmark' title='Permanent Link: Introduction to AS3: Variable types'>Introduction to AS3: Variable types</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
<li><a href='http://codewithdesign.com/2010/05/23/sql-%e2%80%93-an-introduction-to-keys/' rel='bookmark' title='Permanent Link: SQL – An introduction to Keys'>SQL – An introduction to Keys</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2010/02/07/introduction-to-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to AS3: Using Mouse Events to Control an Object</title>
		<link>http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/</link>
		<comments>http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:49:49 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=158</guid>
		<description><![CDATA[The function above declares that it is first a function then names it onRotationLeft. After naming the function the code will declare that this function has a mouse event then is posted as void. On the next line we state that we want there to be a left rotation so we use -=10;  then end the function with a closing bracket and a semicolon.


Related posts:<ol><li><a href='http://codewithdesign.com/2010/03/30/jquery-show-and-hide-images/' rel='bookmark' title='Permanent Link: JQuery: Show and hide images'>JQuery: Show and hide images</a></li>
<li><a href='http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/' rel='bookmark' title='Permanent Link: Intro to HTML: CSS Creating a Style Sheet'>Intro to HTML: CSS Creating a Style Sheet</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Intro to AS3: Using Mouse Events to Control an Object" data-via="" data-url="http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/"></g:plusone><div><a href="http://twitter.com/home?status=%20Intro%20to%20AS3%3A%20Using%20Mouse%20Events%20to%20Control%20an%20Object%20http%3A%2F%2Fbit.ly%2F7dGp9" target="_Parent"><span></span></a></p>
<h2><strong>Going through the code</strong></h2>
<p><strong><a href="http://codewithdesign.com/wp-content/uploads/2009/11/box.swf" target="_blank">View the results</a><br />
</strong></p>
<p>For this creation we are first going to need event listeners in the project. An event listener is something that reacts when an event happens. So within the project we have a fade in and fade out button. Both of these buttons have event listeners that are given instructions on what to do when the event occurs. So in this example we are going to use the rotate left event listener which looks as follows.</p>
<blockquote><p>rotate_left_btn.addEventListener(MouseEvent.MOUSE_DOWN, onRotateLeft);</p></blockquote>
<p>This states that for the instance rotate_left_btn it will add an event listener and that event listener is a mouse event that will take place when the mouse button has been pressed down on. Then it will link to the onRotateLeft function.</p>
<blockquote><p>//Functions for Rotation<br />
function onRotateLeft(evt:MouseEvent):void {<br />
box.rotation -= 10;<br />
};</p></blockquote>
<p><strong>Note:</strong> Take note that information after two forward slashes is read as a comment and will not effect your code in any way. //Comments end when the line ends.</p>
<p>The function above declares that it is first a function then names it onRotationLeft. After naming the function the code will declare that this function has a mouse event then is posted as void. On the next line we state that we want there to be a left rotation so we use -=10;  then end the function with a closing bracket and a semicolon.</p>
<p>Later in the code we have some new mouse events and function that are not mouse buttons but drag actions with the mouse. Theses are created the same way that the other mouse buttons where, there is a function and an event listener but note the front of the event listener where we declare box at the beginning so it will only work when we click down and drag the box.</p>
<h2><strong>The Stage</strong></h2>
<p>What you will need on your stage is first a movie clip with an instance name of box. Now you will need the button images, these don’t need to be pretty they just need to be functional. The layout is up to you but if you need an example click the link before the action script code to view the SWF file.</p>
<h2>The button instances are as follows:</h2>
<p><strong>move_left_btn<br />
move_right_btn<br />
move_up_btn<br />
Move_down_btn</strong></p>
<p><strong>scale_up_btn<br />
scale_down_btn</strong></p>
<p><strong>rotate_left_btn<br />
rotate_right_btn</strong></p>
<p><strong>fade_in_btn<br />
fade_out_btn</strong></p>
<p><strong>toggle_visible_btn</strong></p>
<p><strong>The Action script side of things</strong></p>
<blockquote><p>
//Assigning movements with Functions<br />
function onMoveLeft(evt:MouseEvent):void {<br />
box.x -= 20;<br />
};<br />
function onMoveRight (evt:MouseEvent):void {<br />
box.x += 20;Mouse Events: Controlling a Box<br />
};<br />
function onMoveUp(evt:MouseEvent):void {<br />
box.y -= 10;<br />
};<br />
function onMoveDown (evt:MouseEvent):void {<br />
box.y += 10;<br />
};<br />
//Move Mouse Events<br />
move_left_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMoveLeft);<br />
move_right_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMoveRight);<br />
move_up_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMoveUp);<br />
move_down_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMoveDown);<br />
scale_up_btn.addEventListener(MouseEvent.MOUSE_DOWN, onScaleUp);<br />
scale_down_btn.addEventListener(MouseEvent.MOUSE_DOWN, onScaleDown);<br />
//Rotation Mouse Events<br />
rotate_left_btn.addEventListener(MouseEvent.MOUSE_DOWN, onRotateLeft);<br />
rotate_right_btn.addEventListener(MouseEvent.MOUSE_DOWN, onRotateRight);<br />
//Fading Mouse Events<br />
fade_in_btn.addEventListener(MouseEvent.MOUSE_DOWN, onFadeIn);<br />
fade_out_btn.addEventListener(MouseEvent.MOUSE_DOWN, onFadeOut);<br />
//Toggles the Visibility<br />
toggle_visible_btn.addEventListener(MouseEvent.MOUSE_UP, onToggleVisible);<br />
//Functions For Scaling<br />
function onScaleUp(evt:MouseEvent):void {<br />
box.scaleX += 0.1;<br />
box.scaleY += 0.1;<br />
};<br />
function onScaleDown(evt:MouseEvent):void {<br />
box.scaleX -= 0.1;<br />
box.scaleY -= 0.1;<br />
};<br />
//Functions for Rotation<br />
function onRotateLeft(evt:MouseEvent):void {<br />
box.rotation -= 10;<br />
};<br />
function onRotateRight(evt:MouseEvent):void {<br />
box.rotation += 10;<br />
};<br />
//Function For Fade in and Fade Out<br />
function onFadeIn(evt:MouseEvent):void {<br />
box.alpha += 0.1;<br />
};<br />
function onFadeOut (evt:MouseEvent):void {<br />
box.alpha -= 0.1;<br />
};<br />
//Toggle Button to change Visibility<br />
function onToggleVisible(evt:MouseEvent):void {<br />
box.visible = !box.visible;<br />
};<br />
box.addEventListener(MouseEvent.MOUSE_DOWN,onStartDrag);<br />
box.addEventListener(MouseEvent.MOUSE_UP,onStopDrag);<br />
function onStartDrag(evt:MouseEvent):void {<br />
evt.target.startDrag();<br />
};<br />
function onStopDrag(evt:MouseEvent):void {<br />
evt.target.stopDrag();</p>
<p>};</p></blockquote>
<p>Caleb Jonasson</p></div>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=158&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2010/03/30/jquery-show-and-hide-images/' rel='bookmark' title='Permanent Link: JQuery: Show and hide images'>JQuery: Show and hide images</a></li>
<li><a href='http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/' rel='bookmark' title='Permanent Link: Intro to HTML: CSS Creating a Style Sheet'>Intro to HTML: CSS Creating a Style Sheet</a></li>
<li><a href='http://codewithdesign.com/2010/02/07/introduction-to-as3-creating-the-package/' rel='bookmark' title='Permanent Link: Introduction to AS3: Creating the package.'>Introduction to AS3: Creating the package.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/11/16/intro-to-as3-using-mouse-events-to-control-an-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

