<?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</title>
	<atom:link href="http://www.learntoprogram.tv/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>Android Development:  Creating Custom Buttons</title>
		<link>http://www.learntoprogram.tv/2011/11/21/android-development-creating-custom-buttons/</link>
		<comments>http://www.learntoprogram.tv/2011/11/21/android-development-creating-custom-buttons/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:52:59 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Free Tutorials]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=481</guid>
		<description><![CDATA[In this Android development tutorial, Mark will show you how to create a custom button and place it within your Android application. If you&#8217;ve been working with Android development, you might be surprised how easy it easy to produce and use a custom button. The custom button graphic can have three states, and Mark will [...]]]></description>
			<content:encoded><![CDATA[<p>In this Android development tutorial, Mark will show you how to create a custom button and place it within your Android application. If you&#8217;ve been working with Android development, you might be surprised how easy it easy to produce and use a custom button.  The custom button graphic can have three states, and Mark will you show you the XML to display the button and Java code to make the button execute a task.</p>
<p><iframe src="http://www.youtube.com/embed/JH2zGzfkOmo?rel=0" frameborder="0" width="640" height="480"></iframe></p>
<p>main.xml</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;LinearLayout</span> <span style="color: #000066;">xmlns:android</span>=<span style="color: #ff0000;">&quot;http://schemas.android.com/apk/res/android&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:orientation</span>=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;fill_parent&quot;</span></span>
<span style="color: #009900;">    <span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Button</span> <span style="color: #000066;">android:layout_width</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span> <span style="color: #000066;">android:layout_height</span>=<span style="color: #ff0000;">&quot;wrap_content&quot;</span> <span style="color: #000066;">android:background</span>=<span style="color: #ff0000;">&quot;@drawable/custom_button&quot;</span> <span style="color: #000066;">android:id</span>=<span style="color: #ff0000;">&quot;@+id/btnTv&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/Button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/LinearLayout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>custom_button.xml</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;selector</span></span>
<span style="color: #009900;">  <span style="color: #000066;">xmlns:android</span>=<span style="color: #ff0000;">&quot;http://schemas.android.com/apk/res/android&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">android:drawable</span>=<span style="color: #ff0000;">&quot;@drawable/btn_over&quot;</span></span>
<span style="color: #009900;">   	<span style="color: #000066;">android:state_pressed</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">android:drawable</span>=<span style="color: #ff0000;">&quot;@drawable/btn_normal&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/selector<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>CustomButtonExampleActivity.java</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
</pre></td><td class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">tv.learntoprogram.customButton</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.view.View</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Button</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.Toast</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CustomButtonExampleActivity <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
    <span style="color: #008000; font-style: italic; font-weight: bold;">/** Called when the activity is first created. */</span>
    @<span style="color: #003399; font-weight: bold;">Override</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #006600; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003399; font-weight: bold;">Button</span> btn = <span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">Button</span><span style="color: #009900;">&#41;</span>findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">btnTv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        btn.<span style="color: #006633;">setOnClickListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399; font-weight: bold;">View</span>.<span style="color: #006633;">OnClickListener</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			@<span style="color: #003399; font-weight: bold;">Override</span>
			<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #006600; font-weight: bold;">void</span> onClick<span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				Toast.<span style="color: #006633;">makeText</span><span style="color: #009900;">&#40;</span>getApplicationContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, <span style="color: #0000ff;">&quot;You pressed the custom button&quot;</span>,Toast.<span style="color: #006633;">LENGTH_SHORT</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/11/21/android-development-creating-custom-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>PHP If-Else Conditionals Tutorial</title>
		<link>http://www.learntoprogram.tv/2011/10/11/php-if-else-conditionals-tutorial/</link>
		<comments>http://www.learntoprogram.tv/2011/10/11/php-if-else-conditionals-tutorial/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 14:25:00 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Conditionals]]></category>
		<category><![CDATA[If Else]]></category>
		<category><![CDATA[Mark Lassoff]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=293</guid>
		<description><![CDATA[Many times programs need to make a decision based on conditions that have occurred during execution. For example, which screen to display, whether or not to allow a user to continue to play a game after their character has been killed, and even determining which button has been pushed on a joystick are all determined [...]]]></description>
			<content:encoded><![CDATA[<p>Many times programs need to make a decision based on conditions that have occurred during execution. For example, which screen to display, whether or not to allow a user to continue to play a game after their character has been killed, and even determining which button has been pushed on a joystick are all determined by conditionals.</p>
<p>In this video tutorial, Mark will show you how to use both simple PHP if else and more complex conditional statements in the PHP programming language.</p>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/sHnUaarjgxA" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/10/11/php-if-else-conditionals-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</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>
		<item>
		<title>PHP Variables Tutorial</title>
		<link>http://www.learntoprogram.tv/2011/10/10/php-variables-tutorial/</link>
		<comments>http://www.learntoprogram.tv/2011/10/10/php-variables-tutorial/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 14:09:33 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[opeators]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=280</guid>
		<description><![CDATA[In this PHP Variables Tutorial, Mark will show you how to use variables in the PHP programming language. You will learn how to declare and initialize PHP variables, the PHP variable operators and how to ouput variable values to the browser window. 1 2 3 4 5 6 7 8 9 10 11 12 13 [...]]]></description>
			<content:encoded><![CDATA[<p>In this PHP Variables Tutorial, Mark will show you how to use variables in the PHP programming language. You will learn how to declare and initialize PHP variables, the PHP variable operators and how to ouput variable values to the browser window.</p>
<p><iframe src="http://www.youtube.com/embed/V2WudcNDiK4" 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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$age</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">37</span><span style="color: #339933;">;</span>                      <span style="color: #666666; font-style: italic;">//Numeric Variable</span>
    <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Mark Lassoff&quot;</span><span style="color: #339933;">;</span>         <span style="color: #666666; font-style: italic;">//String Variable</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//echo(&quot;My age is &quot; . $age);</span>
    <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'s age is &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$age</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$operand1</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">48</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$operand2</span> <span style="color: #339933;">=</span> <span style="color:#800080;">201.003</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$sum</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$operand1</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$operand2</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$operand1</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$operand2</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;br/&gt;The sum is: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sum</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;br/&gt;The result of the multiplication is: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$operand1</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$operand2</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;br/&gt;The result of subtraction is: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$operand1</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$operand2</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;br/&gt;The result of division is: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$operand1</span><span style="color: #339933;">++;</span>        <span style="color: #666666; font-style: italic;">//Add One to $operand1</span>
    <span style="color: #000088;">$operand1</span><span style="color: #339933;">--;</span>        <span style="color: #666666; font-style: italic;">//Subtract One from $operand1</span>
&nbsp;
    <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;br/&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color:#800080;">2189.34543</span><span style="color: #339933;">%</span><span style="color:#800080;">67.23432</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/10/10/php-variables-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Tutorial:  Hello World</title>
		<link>http://www.learntoprogram.tv/2011/10/09/php-tutorial-hello-world/</link>
		<comments>http://www.learntoprogram.tv/2011/10/09/php-tutorial-hello-world/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 14:00:04 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=272</guid>
		<description><![CDATA[PHP is a commonly used, server side programming language, most often used to code web applications. WordPress, Joomla, and many other common web applications are written in PHP. With PHP knowledge you can customize or create just about any kind of web site or web application. In this PHP tutorial, Mark will show you how [...]]]></description>
			<content:encoded><![CDATA[<p>PHP is a commonly used, server side programming language, most often used to code web applications. WordPress, Joomla, and many other common web applications are written in PHP. With PHP knowledge you can customize or create just about any kind of web site or web application. In this PHP tutorial, Mark will show you how to set up a PHP testing server and how to output information to the browser window using PHP.</p>
<p>This is a beginners PHP Tutorial and can easily be completed even if you have no previous programming experience. In the tutorial Mark will show you how to create your first PHP script that outputs text content to the web browser.</p>
<p><iframe src="http://www.youtube.com/embed/V2WudcNDiK4" 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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;First PHP Script&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
    <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;p&gt;&lt;strong&gt;Hello World&lt;/strong&gt; from LearnToProgram.tv&lt;/p&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;p&gt;This content was generated by PHP.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/10/09/php-tutorial-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Tutorial</title>
		<link>http://www.learntoprogram.tv/2011/10/07/xml-tutorial/</link>
		<comments>http://www.learntoprogram.tv/2011/10/07/xml-tutorial/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 10:00:27 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[php tutorial]]></category>
		<category><![CDATA[print]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=268</guid>
		<description><![CDATA[In this brief XML tutorial, Mark will show you how to create valid XML documents that can be used with Java, Javascript, C language or .net Applications. XML is commonly used to exchange data between applications or systems. The XML Language (eXtensible Markup Language) has become more important in recent years as it has developed [...]]]></description>
			<content:encoded><![CDATA[<p>In this brief XML tutorial, Mark will show you how to create valid XML documents that can be used with Java, Javascript, C language or .net Applications. XML is commonly used to exchange data between applications or systems.</p>
<p>The XML Language (eXtensible Markup Language) has become more important in recent years as it has developed in to a primary tool for programmers to exchange data. Often when systems don&#8217;t speak the same language they can still exchange data using XML. XML is used with Javascript, Java, Android, and just about every other important programming language&#8230; Understanding how XML works is essential.</p>
<p><iframe src="http://www.youtube.com/embed/y6DmCUH-4MQ" frameborder="0" width="420" height="315"></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
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;people<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;firstName</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;Mr&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Mark<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/firstName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;lastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Lassoff<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/lastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>37<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;location<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Connecticut<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/location<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;favoriteFood<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Chinese Food<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/favoriteFood<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;firstName</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;Dr&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Oscar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/firstName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;lastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Johnson<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/lastName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>25<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;location<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>New York<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/location<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;favoriteFood<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Italian Food<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/favoriteFood<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/people<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/10/07/xml-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Languages Used in Web Development</title>
		<link>http://www.learntoprogram.tv/2011/09/30/languages-used-in-web-development/</link>
		<comments>http://www.learntoprogram.tv/2011/09/30/languages-used-in-web-development/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 21:43:51 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[On Learning]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=261</guid>
		<description><![CDATA[While most web developers have the similar goal of bug-free, functional, usable web sites, there are several programming languages used by developers to reach that goal. Let’s take a few minutes to discuss the the top languages used in web development. The languages are broken into two categories—server side languages and client side languages. The [...]]]></description>
			<content:encoded><![CDATA[<p>While most web developers have the similar goal of bug-free, functional, usable web sites, there are several programming languages used by developers to reach that goal. Let’s take a few minutes to discuss the the top languages used in web development.</p>
<p>The languages are broken into two categories—server side languages and client side languages. The browser on the users’ computers interprets client side languages. You will likely have to know and use each of the client side languages listed below. Server side languages are process and interpreted on the server, which holds the web site code and sends it to the user upon request. While each language has strengths and weaknesses, you will likely find that most projects can be completed adequately using any of the languages server side languages discussed below.</p>
<p><a href="http://www.learntoprogram.tv/wp-content/uploads/2011/09/programming.jpg"><img class="alignright size-full wp-image-262" title="Computer Programming" src="http://www.learntoprogram.tv/wp-content/uploads/2011/09/programming.jpg" alt="Languages Used in Web Development" width="200" height="156" /></a><strong>Client Side Languages</strong><br />
HTML<br />
Purpose: Creating a structure for the web page<br />
HTML is usually the first language that web developers learn. It is not a programming language, but rather a mark-up language. HTML is used to create a structure for a web page. You can develop HTML code using any text editor (not a word processor) and display the results in a web browser. The current recommended standard for HTML are versions 4.01 and a version called XHTML. The exciting HTML5 standard is rapidly approaching and has been the subject of much buzz and speculation. While many developers are learning HTML5 now, it won’t become a standard until 2014 and is inconsistently supported by the major browsers.</p>
<p>CSS<br />
Purpose: To design the visual look of a web page<br />
Cascading Style Sheet language is relatively easy to learn but difficult to master. With Cascading Style Sheet language you can control the look of text, image and layout elements. CSS is used to create the layout structure of a page positioning elements such as navigation bars, headers, footers and page content. The latest version of CSS is CSS3 which contains new features to create more attractive web pages.</p>
<p>Javascript<br />
Purpose: To create client side interactivity<br />
Javascript is a programming language built to function within the browser itself. Javascript is the most difficult of the three client side languages to learn, but also allows for complex interactions with web site visitors. Javascript can be used to verify user input in forms, adjust the appearance of web page elements dynamically and even create custom graphics using the new Canvas HTML element. Good Javascript developers are in high demand because contemporary web applications depend more and more on Javascript to process data and interact with the server through a Javascript implementation known as AJAX (Asynchronous Javascript and XML).</p>
<p><strong>Server Side Languages</strong><br />
PHP<br />
Major Pros: Easy to learn. Free.<br />
Major Cons: Awkward OOP implementation</p>
<p>PHP has been a favorite choice of developers for years. It’s free, easy to lean and there are numerous available resources for learning PHP and getting support. PHP is generally run on Linux web servers and features fast performance and easy integration with the MySQL database. Despite PHP’s ease it is a powerful sever side programming language. Some PHP developers hold the Zend PHP Certification.</p>
<p>J2EE<br />
Major Pros: Powerful, Integration with Large Java Applications<br />
Major Cons: Difficult to Learn</p>
<p>Java’s Enterprise Edition (J2EE) is designed to create heavy duty web applications. It has several features that are designed to make large web applications easier to manage and maintain. J2EE applications require a Java application server such as Tomcat or Glassfish. J2EE is also free to develop in, although due to its complexity, developers often opt for formal training classes to learn the technology. Developers holding Oracle’s Certified Programmer designation must have extensive knowledge of J2EE. Competent J2EE developers are among the highest paid web professionals.</p>
<p>.net (VB and C#)<br />
Major Pros: Great Development Environment, Lots of Formal / Informal Training available<br />
Major Cons: Requires use of Microsoft Visual Studio, No Mac/Linux Support</p>
<p>Microsoft’s .net languages, Visual Basic and C# (pronounced C Sharp), are an excellent and popular choice for web developers. Popular for creating business applications, the .net languages are easier to learn than J2EE, without sacrificing any power or speed. The .net languages run on a Microsoft Web server and easily integrate with Microsoft’s MSSQL database products. Microsoft .net web development is an in-demand skill and developers are frequently recruited for all types of projects. There are numerous training options and certifications that are available for .net programmers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/09/30/languages-used-in-web-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Show and Hide Logical Divisions with Javascript, CSS and HTML</title>
		<link>http://www.learntoprogram.tv/2011/09/26/show-and-hide-logical-divisions-with-javascript-css-and-html/</link>
		<comments>http://www.learntoprogram.tv/2011/09/26/show-and-hide-logical-divisions-with-javascript-css-and-html/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 22:22:32 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=219</guid>
		<description><![CDATA[With just a little Javascript knowledge you can create a sliding div effect that is commonly seen on the web. In this video tutorial, Mark will show you how to create a sliding div within the browser. The sliding div reveals it&#8217;s content as the div opens and completely disappears once the div is closed. [...]]]></description>
			<content:encoded><![CDATA[<p>With just a little Javascript knowledge you can create a sliding div effect that is commonly seen on the web.</p>
<p>In this video tutorial, Mark will show you how to create a sliding div within the browser. The sliding div reveals it&#8217;s content as the div opens and completely disappears once the div is closed. The full code appears below:</p>
<p><iframe src="http://www.youtube.com/embed/J4UleZFvri8" frameborder="0" width="420" height="315"></iframe></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;</span>
<span style="color: #00bbdd;">    &quot;http://www.w3.org/TR/html4/strict.dtd&quot;</span>
<span style="color: #00bbdd;">    &gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Sliding Div: Show Hide<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    #myDiv
        {
            width: 400px;
            background-color: #3451da;
            padding: 5px;
            color: white;
            font-size: .75em;
            font-family: arial;
            border: 1px dashed black;
&nbsp;
        }
&nbsp;
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">language</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
        var heightOfDiv;
        var t;
        var targetHeight;
&nbsp;
        function hide()
        {
            heightOfDiv = document.getElementById(&quot;myDiv&quot;).offsetHeight;
            //alert(heightOfDiv);
            var freq = 1000/heightOfDiv;
            t=setInterval(&quot;retract()&quot;, freq);
        }
&nbsp;
        function retract()
        {
            if(heightOfDiv&gt;0)
            {
                heightOfDiv = heightOfDiv-1;
                document.getElementById(&quot;myDiv&quot;).style.height = heightOfDiv + &quot;px&quot;;
            } else
            {
                document.getElementById(&quot;myDiv&quot;).style.display = &quot;none&quot;;
                clearInterval(t);
            }
        }
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myDiv&quot;</span>&gt;</span>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec molestie, metus sed condimentum molestie, est enim molestie magna, et ullamcorper erat quam sit amet sapien. Nulla eu lorem elit, a convallis velit. Nunc eget nisi ligula. Nunc tellus lacus, bibendum sit amet lacinia ac, molestie sit amet enim. Donec convallis interdum ipsum, ac mattis ipsum porttitor ac. Ut sed erat vitae nisi cursus sodales. Nulla nisi est, fermentum in malesuada eget, aliquet id velit. Fusce ac sapien eu metus fringilla commodo. Nullam porta leo vel nisi rhoncus ac tincidunt enim consequat. Praesent posuere sodales tortor eu placerat. Quisque pulvinar nibh ut ante gravida ornare. Donec euismod lacus vel nibh scelerisque vel sollicitudin mauris feugiat. Etiam sollicitudin lacus neque. Sed mattis accumsan ipsum, nec sollicitudin justo lobortis sed.estie sit amet enim. Donec convallis interdum ipsum, ac mattis ipsum porttitor ac. Ut sed erat vitae nisi cursus sodales. Nulla nisi est, fermentum in malesuada eget, aliquet id velit. Fusce ac sapien eu metus fringilla commodo. Nullam porta leo vel nisi rhoncus ac tincidunt enim consequat. Praesent posuere sodales tortor eu placerat. Quisque pulvinar nibh ut ante gravida ornare. Donec euismod lacus vel nibh scelerisque vel sollicitudin mauris feugiat. Etiam sollicitudin lacus neque. Sed mattis accumsan ipsum, nec sollicitudin justo lobortis sed.
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;controls&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hide&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hide()&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;show&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;show()&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/09/26/show-and-hide-logical-divisions-with-javascript-css-and-html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

