<?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>LearnToProgram.tv &#187; Flex</title>
	<atom:link href="http://www.learntoprogram.tv/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learntoprogram.tv</link>
	<description>Learning to program is as easy as watching tv!</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:59:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To Actionscript: Events</title>
		<link>http://www.learntoprogram.tv/2011/11/18/how-to-actionscript-events/</link>
		<comments>http://www.learntoprogram.tv/2011/11/18/how-to-actionscript-events/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 13:19:07 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flash Professional]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=470</guid>
		<description><![CDATA[Events are serious business in Actionscript&#8211; When the user clicks, double clicks, focuses on an object, right clicks, etc., an event is generated. Dealing with those events is a large part of successful Actionscript programming. In this video, Mark will teach you the basics of events and also take a look at the event object [...]]]></description>
			<content:encoded><![CDATA[<p>Events are serious business in Actionscript&#8211; When the user clicks, double clicks, focuses on an object, right clicks, etc., an event is generated. Dealing with those events is a large part of successful Actionscript programming. In this video, Mark will teach you the basics of events and also take a look at the event object and how you can use it to write more efficient code.</p>
<p><iframe src="http://www.youtube.com/embed/DwrKFpMi6pc?rel=0" frameborder="0" width="480" height="360"></iframe></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000066; font-weight: bold;">?&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>Application xmlns<span style="color: #000066; font-weight: bold;">:</span>fx=<span style="color: #990000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
			   xmlns<span style="color: #000066; font-weight: bold;">:</span>s=<span style="color: #990000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
			   xmlns<span style="color: #000066; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> minWidth=<span style="color: #990000;">&quot;500&quot;</span> minHeight=<span style="color: #990000;">&quot;400&quot;</span>
			   creationComplete=<span style="color: #990000;">&quot;init()&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>fx<span style="color: #000066; font-weight: bold;">:</span>Declarations<span style="color: #000066; font-weight: bold;">&gt;</span>
		<span style="color: #000066; font-weight: bold;">&lt;!--</span> Place non<span style="color: #000066; font-weight: bold;">-</span>visual <span style="color: #004993;">elements</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span>g<span style="color: #000066; font-weight: bold;">.,</span> services<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">value</span> objects<span style="color: #000000;">&#41;</span> here <span style="color: #000066; font-weight: bold;">--&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;/</span>fx<span style="color: #000066; font-weight: bold;">:</span>Declarations<span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>fx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
		<span style="color: #000066; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
			<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				btnOne<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickOne<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				btnTwo<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> clickOne<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> clickOne<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #009900; font-style: italic;">//txtResult.text = &quot;Button One has been clicked&quot;;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> id = event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span>id<span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>id == <span style="color: #990000;">&quot;btnOne&quot;</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					txtResult<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Button One has been clicked&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">else</span>
				<span style="color: #000000;">&#123;</span>
					txtResult<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Button Two has been clicked&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #3f5fbf;">/*
			private function clickTwo(event:MouseEvent)
			{
				txtResult.text = &quot;Button Two has been clicked&quot;;	
			}
			*/</span>
		<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;/</span>fx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>Button <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;9&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;10&quot;</span> label=<span style="color: #990000;">&quot;One&quot;</span> id=<span style="color: #990000;">&quot;btnOne&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>Button <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;10&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;39&quot;</span> label=<span style="color: #990000;">&quot;Two&quot;</span> id=<span style="color: #990000;">&quot;btnTwo&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>TextArea <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;156&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;10&quot;</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;50&quot;</span> id=<span style="color: #990000;">&quot;txtResult&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;/</span>s<span style="color: #000066; font-weight: bold;">:</span>Application<span style="color: #000066; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/11/18/how-to-actionscript-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Actionscript: Arrays</title>
		<link>http://www.learntoprogram.tv/2011/11/17/how-to-actionscript-arrays/</link>
		<comments>http://www.learntoprogram.tv/2011/11/17/how-to-actionscript-arrays/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 14:53:20 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flash Professional]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=467</guid>
		<description><![CDATA[Arrays are an important structure in any programming language. Arrays are designed to allow the programmer to hold multiple pieces of data in a single structure. In this tutorial Mark, demonstrates the basics of arrays using Actionscript and Flash Builder. Mark creates two different arrays and populates them with data. Then he demonstrates several array [...]]]></description>
			<content:encoded><![CDATA[<p>Arrays are an important structure in any programming language. Arrays are designed to allow the programmer to hold multiple pieces of data in a single structure. In this tutorial Mark, demonstrates the basics of arrays using Actionscript and Flash Builder. Mark creates two different arrays and populates them with data. Then he demonstrates several array methods that allow you to add to the array, delete from the array, and manipulate the array in several other ways.</p>
<p>If you are using Actionscript with Flash Professional, Flash Builder or Flex, you will find this tutorial useful.</p>
<p>This &#8220;How To Actionscript&#8221; series is designed for the developer who wants to learn different Actionscript techniques quickly and easily.</p>
<p><iframe src="http://www.youtube.com/embed/HDbGIrXFsUs?rel=0" frameborder="0" width="480" height="360"></iframe></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000066; font-weight: bold;">?&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>Application xmlns<span style="color: #000066; font-weight: bold;">:</span>fx=<span style="color: #990000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
			   xmlns<span style="color: #000066; font-weight: bold;">:</span>s=<span style="color: #990000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
			   xmlns<span style="color: #000066; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> minWidth=<span style="color: #990000;">&quot;400&quot;</span> minHeight=<span style="color: #990000;">&quot;500&quot;</span>
			   creationComplete=<span style="color: #990000;">&quot;init()&quot;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>fx<span style="color: #000066; font-weight: bold;">:</span>Declarations<span style="color: #000066; font-weight: bold;">&gt;</span>
		<span style="color: #000066; font-weight: bold;">&lt;!--</span> Place non<span style="color: #000066; font-weight: bold;">-</span>visual <span style="color: #004993;">elements</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span>g<span style="color: #000066; font-weight: bold;">.,</span> services<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">value</span> objects<span style="color: #000000;">&#41;</span> here <span style="color: #000066; font-weight: bold;">--&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;/</span>fx<span style="color: #000066; font-weight: bold;">:</span>Declarations<span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>fx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
		<span style="color: #000066; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
			<span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #009900; font-style: italic;">//Formal</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> myFamily<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Brett&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Kerry&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Joan&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Rick&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Kevin&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Conner&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Colleen&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Carol&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> languages<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;C++&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Objective C&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Actionscript&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Java&quot;</span> <span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;PHP&quot;</span> <span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Assembly&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//txtResult.text =  myFamily.toString();</span>
				<span style="color: #009900; font-style: italic;">//txtResult.text = myFamily[3];</span>
&nbsp;
				languages<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#40;</span>languages<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span> = <span style="color: #990000;">&quot;C#.net&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				languages<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Visual Basic&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #6699cc; font-weight: bold;">var</span> returnedElement = languages<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">pop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">x</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">&lt;</span> languages<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					txtResult<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">+</span>= languages<span style="color: #000000;">&#91;</span><span style="color: #004993;">x</span><span style="color: #000000;">&#93;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;<span style="">\n</span>&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
&nbsp;
				txtResult<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;Returned Element: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> returnedElement<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;/</span>fx<span style="color: #000066; font-weight: bold;">:</span>Script<span style="color: #000066; font-weight: bold;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">&lt;</span>s<span style="color: #000066; font-weight: bold;">:</span>TextArea <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;18&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;10&quot;</span> id=<span style="color: #990000;">&quot;txtResult&quot;</span><span style="color: #000066; font-weight: bold;">/&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;/</span>s<span style="color: #000066; font-weight: bold;">:</span>Application<span style="color: #000066; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/11/17/how-to-actionscript-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder and Actionscript Tutorial: Interactive Hello World</title>
		<link>http://www.learntoprogram.tv/2011/10/10/flash-builder-and-actionscript-tutorial-interactive-hello-world/</link>
		<comments>http://www.learntoprogram.tv/2011/10/10/flash-builder-and-actionscript-tutorial-interactive-hello-world/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 14:17:57 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[actionscript tutorial]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[hello world]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=288</guid>
		<description><![CDATA[Getting started with Flash Builder (Flex) is easy! Flash Builder (Flex) allows you to build complex web applications using MXML and Actionscript. Due to the impressive and extensive Actionscript API, Flash Builder (Flex) applications can do almost anything. From streaming audio and video applications to games to impressive data visualizations, Flash Builder provides programmers with [...]]]></description>
			<content:encoded><![CDATA[<p>Getting started with Flash Builder (Flex) is easy! Flash Builder (Flex) allows you to build complex web applications using MXML and Actionscript. Due to the impressive and extensive Actionscript API, Flash Builder (Flex) applications can do almost anything. From streaming audio and video applications to games to impressive data visualizations, Flash Builder provides programmers with enormous power.</p>
<p>In this Actionscript Tutorial, using Flash Builder, you will create a simple, interactive application. In doing so you will see many of the major features of the Flash Builder environment.</p>
<p><iframe src="http://www.youtube.com/embed/lyV3qO1sh44" frameborder="0" width="480" height="360"></iframe></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
			   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
			   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> minWidth=<span style="color: #ff0000;">&quot;400&quot;</span> minHeight=<span style="color: #ff0000;">&quot;300&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #000000; font-weight: bold;">function</span> displayResult<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				lblResult.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Hello, Thanks for pressing the button&quot;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>s:Label x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> id=<span style="color: #ff0000;">&quot;lblResult&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>s:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;43&quot;</span> label=<span style="color: #ff0000;">&quot;Press Me!&quot;</span> id=<span style="color: #ff0000;">&quot;btnPress&quot;</span> click=<span style="color: #ff0000;">&quot;displayResult()&quot;</span><span style="color: #66cc66;">/&gt;</span>
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/10/10/flash-builder-and-actionscript-tutorial-interactive-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

