<?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>MyFriendTodd</title>
	<atom:link href="http://myfriendtodd.com/feed" rel="self" type="application/rss+xml" />
	<link>http://myfriendtodd.com</link>
	<description>Official Website for Todd Vaughn an Interactive Web and Software Professional</description>
	<lastBuildDate>Thu, 07 Apr 2011 17:55:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>My Computer Is Now Your</title>
		<link>http://myfriendtodd.com/my-computer-is-now-your</link>
		<comments>http://myfriendtodd.com/my-computer-is-now-your#comments</comments>
		<pubDate>Fri, 04 Feb 2011 15:35:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=273</guid>
		<description><![CDATA[...if you have the know how, you can build a program like Flash with Flash. <a href="http://myfriendtodd.com/my-computer-is-now-your"> </a>]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://myfriendtodd.com/mypc/" target="_bank"><img src="http://myfriendtodd.com/wp-content/uploads/2011/02/mypc.jpg" alt="My Computer" width="400" /></a></center></p>
<p>This is a project I worked on to test the power of Flash. Adobe Flash is a program used to build interactive media for web, desktop and mobile deployment. Essentially, if you have the know how, you can build a program like Flash with Flash. In this demonstration I built a basic Windows interface.</p>
<p><a href="http://myfriendtodd.com/mypc/" target="_bank">View the project</a></p>
<p>&#038;nbsp</p>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/my-computer-is-now-your/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MP3 Player With Scrolling Playlist</title>
		<link>http://myfriendtodd.com/mp3-player-with-scrolling-playlist</link>
		<comments>http://myfriendtodd.com/mp3-player-with-scrolling-playlist#comments</comments>
		<pubDate>Tue, 16 Nov 2010 17:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General News]]></category>
		<category><![CDATA[Products]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=268</guid>
		<description><![CDATA[MP3 player fr your website. This is a simple player that can be tinted (in Flash) to match your website. It is xml based and includes a playlist that will handle any number of mp3 files. The playlist is displayed using TweenMax which gives a really nice scrolling effect. <a href="http://myfriendtodd.com/mp3-player-with-scrolling-playlist"> </a>]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://myfriendtodd.com/products/mp3-with-playlist/index.html" target="_blank"><img src="http://www.myfriendtodd.com/products/mp3-with-playlist/preview.jpg" alt="MP3 Player With Scrolling Playlist" width="440" /></a></center></p>
<p>
- xml playlist builds player playlist<br />
        &#8211; TweenMax playlist effects<br />
        &#8211; highlight for currently playing song<br />
        &#8211; player/playlist can be tinted in via the Flash file<br />
        &#8211; play, pause, next and previous track buttons
</p>
<p>&nbsp;</p>
<h2>Product Includes:</h2>
<p>- Source code and .fla(Flash file)</p>
<p>
<span style="color:#FFE98B;font-size:21px;font-weight:bold;line-height:21px;float:left;">$12.95</span>&nbsp;&nbsp;&nbsp;<a href="http://store.payloadz.com/go?id=898622" target="paypal"><img src="http://myfriendtodd.com/products/buy_button.png" border="0" ></a></p>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/mp3-player-with-scrolling-playlist/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compact XML MP3 Player With Hidden Playlist</title>
		<link>http://myfriendtodd.com/compact-xml-mp3-player-with-hidden-playlist</link>
		<comments>http://myfriendtodd.com/compact-xml-mp3-player-with-hidden-playlist#comments</comments>
		<pubDate>Tue, 16 Nov 2010 17:14:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General News]]></category>
		<category><![CDATA[Products]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=263</guid>
		<description><![CDATA[Compact mp3 player for your website. This is a simple player that can be tinted (in Flash) to match your website. It is xml based and includes a playlist that will handle any number of mp3 files. <a href="http://myfriendtodd.com/compact-xml-mp3-player-with-hidden-playlist"> </a>]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://myfriendtodd.com/products/mp3-compact/index.html" target="_blank"><img src="http://www.myfriendtodd.com/products/mp3-compact/preview.jpg" alt="Compact XML MP3 Player With Hidden Playlist" width="440" /></a></center></p>
<p>
- xml playlist builds player playlist<br />
        &#8211; compact design<br />
        &#8211; player can be tinted in via the Flash file<br />
        &#8211; play, pause, next and previous track buttons</p>
<p>&nbsp;</p>
<h2>Product Includes:</h2>
<p>- Source code and .fla(Flash file)
</p>
<p>
<span style="color:#FFE98B;font-size:21px;font-weight:bold;line-height:21px;float:left;">$12.95</span>&nbsp;&nbsp;&nbsp;<a href="http://store.payloadz.com/go?id=898620" target="paypal"><img src="http://myfriendtodd.com/products/buy_button.png" border="0" ></a></p>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/compact-xml-mp3-player-with-hidden-playlist/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Read iTunes and Other Podcasts with Action Script 3.0</title>
		<link>http://myfriendtodd.com/how-to-read-itunes-and-other-podcasts-with-action-script-3-0</link>
		<comments>http://myfriendtodd.com/how-to-read-itunes-and-other-podcasts-with-action-script-3-0#comments</comments>
		<pubDate>Tue, 16 Nov 2010 16:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General News]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=254</guid>
		<description><![CDATA[If you have ever had issues reading namespaces and attributes in XML files with action script 3.0, then this post is for you. Recently I made a simple iTunes podcast reader that plays the MP3 associated with the file. <a href="http://myfriendtodd.com/how-to-read-itunes-and-other-podcasts-with-action-script-3-0">check out the code</a> or ... <a href="http://myfriendtodd.com/products/itunes-reader/index.html" target="_blank">view and/or download the project</a> <a href="http://myfriendtodd.com/how-to-read-itunes-and-other-podcasts-with-action-script-3-0"> </a>]]></description>
			<content:encoded><![CDATA[<p>If you have ever had issues reading namespaces and attributes in XML files with action script 3.0, then this post is for you. Recently I made a simple iTunes podcast reader that plays the MP3 associated with the file. Enough jargon, here is the code. <a href="http://myfriendtodd.com/products/itunes-reader/index.html" target="_blank">view and/or download the project</a></p>
<p><strong>code for XML</strong> this code handles all podcast importing&#8230; <em>may need to change the nodes based on the podcast you are using</em></p>
<div class="codecolorer-container actionscript vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">// declare a string to put your xml file location in</span><br />
<span style="color: #000000; font-weight: bold;">var</span> xmlLocation:<span style="color: #0066CC;">String</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">// allow for FlashVar to set the xml file location (update the xml declaration without opening flash)</span><br />
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">jxmlLocation</span> == <span style="color: #0066CC;">undefined</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// if FlashVar is not set load a default xml file</span><br />
&nbsp; &nbsp; xmlLocation = <span style="color: #ff0000;">&quot;itunes_audio.rss&quot;</span>; <span style="color: #808080; font-style: italic;">// </span><br />
<span style="color: #66cc66;">&#125;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// if FlashVar is set, load the xml file from the FlashVar</span><br />
&nbsp; &nbsp; xmlLocation = <span style="color: #ff0000;">&quot;&quot;</span> + <span style="color: #0066CC;">this</span>.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">jxmlLocation</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">// query counters</span><br />
<span style="color: #000000; font-weight: bold;">var</span> b:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> q_id:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">// uncomment for browser querying (query an xml node directly from browser - i.e. http://www.yourdomain.com/player.html?q_id=3)</span><br />
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>root.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">q_id</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; q_id = root.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">q_id</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">// here we handle the namespace declarations from itunes</span><br />
<span style="color: #000000; font-weight: bold;">var</span> itunes:Namespace = <span style="color: #000000; font-weight: bold;">new</span> Namespace<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://www.itunes.com/dtds/podcast-1.0.dtd&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">// here we set up arrays to for each xml node</span><br />
<span style="color: #000000; font-weight: bold;">var</span> itemTitles:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemAuthor:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemSubtitle:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemSummary:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemEnclosureURL:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemEnclosureLength:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemEnclosureType:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemGuid:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemPubDate:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemDuration:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> itemKeywords:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">// xml handler</span><br />
<span style="color: #808080; font-style: italic;">////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br />
<span style="color: #000000; font-weight: bold;">var</span> xmlURLLoader:URLLoader = <span style="color: #000000; font-weight: bold;">new</span> URLLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> xmlURLRequest:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>xmlLocation<span style="color: #66cc66;">&#41;</span>;<br />
xmlURLLoader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>xmlURLRequest<span style="color: #66cc66;">&#41;</span>;<br />
<br />
xmlURLLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, dataLoaded<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> theXMLData:<span style="color: #0066CC;">XML</span>;<br />
<span style="color: #000000; font-weight: bold;">function</span> dataLoaded<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; theXMLData = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span>xmlURLLoader.<span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> a:<span style="color: #0066CC;">Number</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//trace(theXMLData);</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// display channel information</span><br />
&nbsp; &nbsp; channelTitleTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">title</span>;<br />
&nbsp; &nbsp; channelLinkTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">link</span>;<br />
&nbsp; &nbsp; channelLanguageTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #0066CC;">language</span>;<br />
&nbsp; &nbsp; channelCopyrightTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">copyright</span>;<br />
&nbsp; &nbsp; channelDescriptionTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">description</span>;<br />
&nbsp; &nbsp; channelSubtitleTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::subtitle;<br />
&nbsp; &nbsp; channelAuthorTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::author;<br />
&nbsp; &nbsp; channelSummaryTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::summary;<br />
&nbsp; &nbsp; channelOwnerNameTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::owner.<span style="color: #006600;">itunes</span>::<span style="color: #0066CC;">name</span>;<br />
&nbsp; &nbsp; channelOwnerEmailTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::owner.<span style="color: #006600;">itunes</span>::email;<br />
&nbsp; &nbsp; channelImageTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::image.<span style="color: #66cc66;">@</span>href;<br />
&nbsp; &nbsp; channelCategoryTB.<span style="color: #0066CC;">htmlText</span> = theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::category.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::category.<span style="color: #006600;">itunes</span>::category.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">itunes</span>::category.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// push all item elements into the above set arrays</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>b <span style="color: #66cc66;">&lt;</span> a<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; itemTitles.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">title</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemAuthor.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">itunes</span>::author<span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemSubtitle.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">itunes</span>::subtitle<span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemSummary.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">itunes</span>::summary<span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; itemEnclosureURL.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">enclosure</span>.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemEnclosureLength.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">enclosure</span>.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemEnclosureType.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">enclosure</span>.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemGuid.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">guid</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemPubDate.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">pubDate</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemDuration.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">itunes</span>::<span style="color: #0066CC;">duration</span><span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; itemKeywords.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">itunes</span>::keywords<span style="color: #66cc66;">&#91;</span>b<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; b++;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// display each item block</span><br />
&nbsp; &nbsp; itemTitleTB.<span style="color: #0066CC;">htmlText</span> = itemTitles<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemAuthorTB.<span style="color: #0066CC;">htmlText</span> = itemAuthor<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSubtitleTB.<span style="color: #0066CC;">htmlText</span> = itemSubtitle<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSummaryTB.<span style="color: #0066CC;">htmlText</span> = itemSummary<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemEnclosureTB.<span style="color: #0066CC;">htmlText</span> = itemEnclosureURL<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureLength<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureType<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemGuidTB.<span style="color: #0066CC;">htmlText</span> = itemGuid<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemPubDateTB.<span style="color: #0066CC;">htmlText</span> = itemPubDate<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemDurationTB.<span style="color: #0066CC;">htmlText</span> = itemDuration<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemKeywordsTB.<span style="color: #0066CC;">htmlText</span> = itemKeywords<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<span style="color: #808080; font-style: italic;">////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br />
<br />
<span style="color: #808080; font-style: italic;">// action for next button</span><br />
nextBtn.<span style="color: #006600;">label</span> = <span style="color: #ff0000;">&quot;Next&quot;</span>;<br />
nextBtn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, next_q_id<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">function</span> next_q_id<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; q_id++;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; itemTitleTB.<span style="color: #0066CC;">htmlText</span> = itemTitles<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemAuthorTB.<span style="color: #0066CC;">htmlText</span> = itemAuthor<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSubtitleTB.<span style="color: #0066CC;">htmlText</span> = itemSubtitle<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSummaryTB.<span style="color: #0066CC;">htmlText</span> = itemSummary<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemEnclosureTB.<span style="color: #0066CC;">htmlText</span> = itemEnclosureURL<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureLength<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureType<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemGuidTB.<span style="color: #0066CC;">htmlText</span> = itemGuid<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemPubDateTB.<span style="color: #0066CC;">htmlText</span> = itemPubDate<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemDurationTB.<span style="color: #0066CC;">htmlText</span> = itemDuration<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemKeywordsTB.<span style="color: #0066CC;">htmlText</span> = itemKeywords<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; prevBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// specific for changing the audio reference (not needed if you decide to not play the audio)</span><br />
&nbsp; &nbsp; changeAudio<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>q_id == itemTitles.<span style="color: #0066CC;">length</span> - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; nextBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span><br />
prevBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
prevBtn.<span style="color: #006600;">label</span> = <span style="color: #ff0000;">&quot;Previous&quot;</span>;<br />
prevBtn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, prev_q_id<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">function</span> prev_q_id<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; q_id--;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; itemTitleTB.<span style="color: #0066CC;">htmlText</span> = itemTitles<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemAuthorTB.<span style="color: #0066CC;">htmlText</span> = itemAuthor<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSubtitleTB.<span style="color: #0066CC;">htmlText</span> = itemSubtitle<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemSummaryTB.<span style="color: #0066CC;">htmlText</span> = itemSummary<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemEnclosureTB.<span style="color: #0066CC;">htmlText</span> = itemEnclosureURL<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureLength<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span> + <span style="color: #ff0000;">&quot; | &quot;</span> + itemEnclosureType<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemGuidTB.<span style="color: #0066CC;">htmlText</span> = itemGuid<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemPubDateTB.<span style="color: #0066CC;">htmlText</span> = itemPubDate<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemDurationTB.<span style="color: #0066CC;">htmlText</span> = itemDuration<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; itemKeywordsTB.<span style="color: #0066CC;">htmlText</span> = itemKeywords<span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; nextBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// specific for changing the audio reference (not needed if you decide to not play the audio)</span><br />
&nbsp; &nbsp; changeAudio<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>q_id == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; q_id = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; prevBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>code for audio player</strong></p>
<div class="codecolorer-container actionscript vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">// SPECIFIC CODE FOR PLAYING THE AUDIO FROM THE ITUNES FILE</span><br />
<br />
<span style="color: #808080; font-style: italic;">// check to see if this is the first launch of the mp3 Player</span><br />
<span style="color: #000000; font-weight: bold;">var</span> firstLaunch:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">// reset the audio player for next song</span><br />
<span style="color: #000000; font-weight: bold;">function</span> changeAudio<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>theAudioPlayer.<span style="color: #0066CC;">visible</span> == <span style="color: #000000; font-weight: bold;">true</span> <span style="color: #66cc66;">&amp;&amp;</span> firstLaunch == <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">with</span><span style="color: #66cc66;">&#40;</span>theAudioPlayer<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soundChannel.<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//stop audio</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; songPlaying = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isPlaying = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; play_btn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pause_btn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; theAudioPlayer.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; playAudioBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">// handler for play audio btn</span><br />
playAudioBtn.<span style="color: #006600;">label</span> = <span style="color: #ff0000;">&quot;Play Audio&quot;</span>;<br />
theAudioPlayer.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
playAudioBtn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, playTheAudio<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">function</span> playTheAudio<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; theAudioPlayer.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; playAudioBtn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">with</span><span style="color: #66cc66;">&#40;</span>theAudioPlayer<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// get the correct song path from the itunes file</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> thisReq:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>theXMLData.<span style="color: #006600;">channel</span>.<span style="color: #006600;">item</span>.<span style="color: #006600;">enclosure</span>.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#91;</span>q_id<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> thisTitle:<span style="color: #0066CC;">Sound</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Sound</span><span style="color: #66cc66;">&#40;</span>thisReq<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// if this is the players first launch, this handle the initial loading of the mp3 files</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>firstLaunch == <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q_id = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; music.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>thisReq<span style="color: #66cc66;">&#41;</span>;<span style="color: #808080; font-style: italic;">//load music</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>songPlaying == <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soundChannel = thisTitle.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; songPlaying = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isPlaying = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// if this is not the initial load of the mp3 files this is reset the player and play the next song</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentSound = thisTitle;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soundChannel.<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; songPlaying = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isPlaying = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tBar.<span style="color: #006600;">tBarKnob</span>.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">1</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayTime.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;00:00/00:00&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isPlaying = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soundChannel = thisTitle.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; songPlaying = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; firstLaunch = <span style="color: #000000; font-weight: bold;">false</span>; <span style="color: #808080; font-style: italic;">// after player has been launched this will prevent the initial launch code from running again</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; theAudioPlayer.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, <span style="color: #0066CC;">OnEnterFrame</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// starts the sound tracking (seekbar and time)</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/how-to-read-itunes-and-other-podcasts-with-action-script-3-0/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shop Ambition</title>
		<link>http://myfriendtodd.com/shop-ambition</link>
		<comments>http://myfriendtodd.com/shop-ambition#comments</comments>
		<pubDate>Fri, 13 Aug 2010 23:13:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=237</guid>
		<description><![CDATA[Shop Ambition dynamic website and store <a href="http://myfriendtodd.com/shop-ambition"> </a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://myfriendtodd.com/wp-content/uploads/2010/08/shopambition-site.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/08/shopambition-site.jpg" alt="" title="shopambition-site" width="400" class="aligncenter wp-image-238" /></a></p>
<p><a href="http://myfriendtodd.com/wp-content/uploads/2010/08/shopambition-site-store.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/08/shopambition-site-store.jpg" alt="" title="shopambition-site-store" width="400" class="aligncenter wp-image-241" /></a></p>
<hr />
Shop Ambition website</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/shop-ambition/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HPO Spa Treatments</title>
		<link>http://myfriendtodd.com/hpo-spa-treatments</link>
		<comments>http://myfriendtodd.com/hpo-spa-treatments#comments</comments>
		<pubDate>Thu, 12 Aug 2010 18:54:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=60</guid>
		<description><![CDATA[HPO Spa Treatments HPO Spa Treatments &#8211; redesign]]></description>
			<content:encoded><![CDATA[<p><a href="http://myfriendtodd.com/wp-content/uploads/2010/07/hpospatreatments-site.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/07/hpospatreatments-site.jpg" alt="" title="hpospatreatments-site" width="400" class="aligncenter wp-image-61" /></a></p>
<hr />
HPO Spa Treatments</p>
<hr />
<a href="http://myfriendtodd.com/wp-content/uploads/2010/07/hpo-site-redesign.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/07/hpo-site-redesign.jpg" alt="" title="hpo-site-redesign" width="400" class="aligncenter wp-image-232" /></a></p>
<p><a href="http://myfriendtodd.com/wp-content/uploads/2010/07/hpo-site-redesign-store.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/07/hpo-site-redesign-store.jpg" alt="" title="hpo-site-redesign-store" width="400" class="aligncenter wp-image-243" /></a></p>
<hr />
HPO Spa Treatments &#8211; redesign</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/hpo-spa-treatments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doctor Rick Lehman</title>
		<link>http://myfriendtodd.com/doctor-rick-lehman</link>
		<comments>http://myfriendtodd.com/doctor-rick-lehman#comments</comments>
		<pubDate>Wed, 11 Aug 2010 18:50:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=50</guid>
		<description><![CDATA[Doctor Rick Lehman website]]></description>
			<content:encoded><![CDATA[<p><a href="http://myfriendtodd.com/wp-content/uploads/2010/07/doctorricklehman-site.jpg"><img src="http://myfriendtodd.com/wp-content/uploads/2010/07/doctorricklehman-site-300x182.jpg" alt="" title="doctorricklehman-site" width="300" height="182" class="aligncenter size-medium wp-image-51" /></a></p>
<hr />
Doctor Rick Lehman website</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/doctor-rick-lehman/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Antione Dodson Bedroom Intruder Song</title>
		<link>http://myfriendtodd.com/antione-dodson-bedroom-intruder-song</link>
		<comments>http://myfriendtodd.com/antione-dodson-bedroom-intruder-song#comments</comments>
		<pubDate>Wed, 11 Aug 2010 01:12:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Socially]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=223</guid>
		<description><![CDATA[If you have not heard of Antione Dodson, then you really need to visit this link http://tinyurl.com/35znbs2. Also, check out my post for the original story together with the remix. <a href="http://myfriendtodd.com/antione-dodson-bedroom-intruder-song"> </a>]]></description>
			<content:encoded><![CDATA[<h1>Original Story</h1>
<p><center><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/DZi6DEJsOJ0&amp;hl=en_US&amp;fs=1?rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DZi6DEJsOJ0&amp;hl=en_US&amp;fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
</center></p>
<p>&nbsp;</p>
<h1>Auto Tune Remix</h1>
<p><center><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/vVXhftsMFgs&amp;hl=en_US&amp;fs=1?rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vVXhftsMFgs&amp;hl=en_US&amp;fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/antione-dodson-bedroom-intruder-song/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build An XML File Using PHP</title>
		<link>http://myfriendtodd.com/build-an-xml-file-using-php</link>
		<comments>http://myfriendtodd.com/build-an-xml-file-using-php#comments</comments>
		<pubDate>Fri, 06 Aug 2010 14:18:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=204</guid>
		<description><![CDATA[in this example we will create a database in MySQL and create an xml file using php to show the information in that databases table. <a href="http://myfriendtodd.com/build-an-xml-file-using-php"> </a>]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #666666; font-style: italic;">// first create a new database. in this example it will be 'vidgallery'</span><br />
<br />
<span style="color: #666666; font-style: italic;">// second, connect to that database</span><br />
<span style="color: #000088;">$dbhost</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span> &nbsp;Database Hostname <span style="color: #009900;">&#40;</span>Most is<span style="color: #339933;">:</span> localhost<span style="color: #009900;">&#41;</span><br />
<span style="color: #000088;">$dbusername</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;root&quot;</span><span style="color: #339933;">;</span> &nbsp; Database &nbsp;Username<br />
<span style="color: #000088;">$dbpassword</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;******&quot;</span><span style="color: #339933;">;</span> &nbsp; Database &nbsp;Password<br />
<span style="color: #000088;">$dbname</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;vidgallery&quot;</span><span style="color: #339933;">;</span> Database Name<br />
<br />
<span style="color: #666666; font-style: italic;">// Connect to MySQL</span><br />
<span style="color: #000088;">$connect</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dbhost</span><span style="color: #339933;">,</span><span style="color: #000088;">$dbusername</span><span style="color: #339933;">,</span><span style="color: #000088;">$dbpassword</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//Select the correct database.</span><br />
<span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dbname</span><span style="color: #339933;">,</span><span style="color: #000088;">$connect</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container sql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">-- third we will create a table in sql</span><br />
<br />
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> <span style="color: #ff0000;">`theVideo`</span> <span style="color: #66cc66;">&#40;</span><br />
&nbsp; <span style="color: #ff0000;">`vidTitle`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`vidProject`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`vidClient`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`vidRole`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`vidPath`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`vidCover`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #ff0000;">`id`</span> int<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">,</span><br />
&nbsp; <span style="color: #993333; font-weight: bold;">PRIMARY</span> <span style="color: #993333; font-weight: bold;">KEY</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`id`</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM &nbsp;<span style="color: #993333; font-weight: bold;">DEFAULT</span> CHARSET<span style="color: #66cc66;">=</span>latin1 <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">11</span> ;</div></td></tr></tbody></table></div>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #666666; font-style: italic;">// fourth we will echo an xml file with the information from our data base</span><br />
<br />
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM theVideo ORDER BY id&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$connect</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// open the xml file</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;?xml version=<span style="color: #000099; font-weight: bold;">\&quot;</span>1.0<span style="color: #000099; font-weight: bold;">\&quot;</span> encoding=<span style="color: #000099; font-weight: bold;">\&quot;</span>utf-8<span style="color: #000099; font-weight: bold;">\&quot;</span>?&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// backslash escapes the double qoute</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;videos&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// iterate through results</span><br />
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$myrow</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;videoData&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;index&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/index&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_title&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidTitle&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_title&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_project&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidProject&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_project&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_client&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidClient&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_client&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_role&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidRole&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_role&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_path&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidPath&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_path&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;video_cover&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$myrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vidCover&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/video_cover&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/videoData&gt;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// close the xml file</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/videos&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/build-an-xml-file-using-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tinting A MovieClip With Action Script 2.0</title>
		<link>http://myfriendtodd.com/tinting-a-movieclip-with-action-script-2-0</link>
		<comments>http://myfriendtodd.com/tinting-a-movieclip-with-action-script-2-0#comments</comments>
		<pubDate>Fri, 06 Aug 2010 14:04:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://myfriendtodd.com/?p=198</guid>
		<description><![CDATA[In this example we will create a tint dynamically with actionscript 2.0. this is useful when build an application such as a stop light, where the lights turn from one color to another. <a href="http://myfriendtodd.com/tinting-a-movieclip-with-action-script-2-0"> </a>]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container actionscript vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">//Here we assume some MovieClip needs to be tinted green.</span><br />
<span style="color: #808080; font-style: italic;">//dependencies:</span><br />
<span style="color: #808080; font-style: italic;">//rb: is the red value</span><br />
<span style="color: #808080; font-style: italic;">//gb: is the green value</span><br />
<span style="color: #808080; font-style: italic;">//bb: is the blue value</span><br />
<span style="color: #808080; font-style: italic;">//aa: is the alpha for the tint </span><br />
<br />
<span style="color: #000000; font-weight: bold;">var</span> myNewColor = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Color</span><span style="color: #66cc66;">&#40;</span>myMovieClip<span style="color: #66cc66;">&#41;</span>;<br />
myNewColor .<span style="color: #0066CC;">setTransform</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>rb:<span style="color: #cc66cc;">0</span>,gb:<span style="color: #cc66cc;">255</span>,bb:<span style="color: #cc66cc;">0</span>, aa:<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://myfriendtodd.com/tinting-a-movieclip-with-action-script-2-0/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

