<?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>Flash XML - FlashComponents.net Blog &#187; Actionscript 3.0</title>
	<atom:link href="http://www.flashxml.com/category/flash-categories/actionscript-3-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashxml.com</link>
	<description>Flash XML - a blog about flash components, video, xml galleries, web templates</description>
	<lastBuildDate>Sat, 04 Feb 2012 10:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash Tutorial: Full Browser Flash Video Background in ActionScript 3.0</title>
		<link>http://www.flashxml.com/flash-tutorials/flash-tutorial-full-browser-flash-video-background-in-actionscript-3-0/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-tutorial-full-browser-flash-video-background-in-actionscript-3-0</link>
		<comments>http://www.flashxml.com/flash-tutorials/flash-tutorial-full-browser-flash-video-background-in-actionscript-3-0/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 13:44:24 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[full browser video background]]></category>
		<category><![CDATA[resize movie full browser]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2883</guid>
		<description><![CDATA[This Flash tutorial will teach you all you need to know about displaying a movie that resizes to a full browser. It's a simple 5-step tutorial that's easy to follow and apply. ]]></description>
			<content:encoded><![CDATA[<p>This Flash tutorial will teach you all you need to know about displaying a movie that resizes to a  full browser. It&#8217;s a simple 5-step tutorial that&#8217;s easy to follow and apply.</p>
<p>Here&#8217;s the <strong>tutorial overview</strong>:</p>
<p>* Step 1: Setup<br />
* Step 2: Loading And Playing A Video<br />
* Step 3: Resizing<br />
* Step 4: Running the code<br />
* Step 5: The Final Touch</p>
<p><a href="http://www.flashcomponents.net/tutorials/full_browser_flash_video_background.html">Start the tutorial</a> and if you have any problems, just leave a comment. Also, be sure to <a href="http://www.flashcomponents.net/author/firecode.html">visit Firecode&#8217;s portfolio</a> for other great Flash resources you can use.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-full-browser-flash-video-background-in-actionscript-3-0%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-full-browser-flash-video-background-in-actionscript-3-0%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-full-browser-flash-video-background-in-actionscript-3-0%2F&amp;t=Flash%20Tutorial%3A%20Full%20Browser%20Flash%20Video%20Background%20in%20ActionScript%203.0%20" id="facebook_share_button_2883" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2883') || document.getElementById('facebook_share_icon_2883') || document.getElementById('facebook_share_both_2883') || document.getElementById('facebook_share_button_2883');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2883') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/flash-tutorial-full-browser-flash-video-background-in-actionscript-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Tutorial: How to load unlimited images with ActionScript 3</title>
		<link>http://www.flashxml.com/flash-tutorials/flash-tutorial-how-to-load-unlimited-images-with-actionscript-3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-tutorial-how-to-load-unlimited-images-with-actionscript-3</link>
		<comments>http://www.flashxml.com/flash-tutorials/flash-tutorial-how-to-load-unlimited-images-with-actionscript-3/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 11:01:00 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[load unlimited images in actionscript]]></category>
		<category><![CDATA[step-by-step tutorial]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2844</guid>
		<description><![CDATA[This tutorial will teach you how to load unlimited images using Actionscript 3 and a XML file.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-2847" title="unlim2" src="http://www.flashxml.com/wordpress/wp-content/uploads/2011/01/unlim2.png" alt="unlim2" width="575" height="109" /></p>
<p>There are Flash galleries that only allow you to add a limited number of images, by default. If you want to add an unlimited number of pictures to your gallery and load them in Flash, then there are a few simple steps that will help you do that.</p>
<p>This tutorial will teach you how to load unlimited images using Actionscript 3 and a XML file. The source code is included, so all you have to do is copy&amp;paste a few lines of code and you&#8217;re done. <a href="http://www.flashcomponents.net/tutorials/loading_unlimited_images_with_actionscript_3.html">Start the tutorial here</a> and let me know if you have any problems.</p>
<p>For other step-by-step Flash tutorials, be sure to <a href="http://www.flashcomponents.net/author/firecode.html">visit Firecode&#8217;s portfolio</a>.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-how-to-load-unlimited-images-with-actionscript-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-how-to-load-unlimited-images-with-actionscript-3%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-how-to-load-unlimited-images-with-actionscript-3%2F&amp;t=Flash%20Tutorial%3A%20How%20to%20load%20unlimited%20images%20with%20ActionScript%203" id="facebook_share_button_2844" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2844') || document.getElementById('facebook_share_icon_2844') || document.getElementById('facebook_share_both_2844') || document.getElementById('facebook_share_button_2844');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2844') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/flash-tutorial-how-to-load-unlimited-images-with-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Tutorial: Create a Magnifying Glass Effect in ActionScript 3.0</title>
		<link>http://www.flashxml.com/flash-tutorials/flash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0</link>
		<comments>http://www.flashxml.com/flash-tutorials/flash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 14:54:51 +0000</pubDate>
		<dc:creator>Alice</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[Magnifying Glass Effect]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2545</guid>
		<description><![CDATA[If you like using cool effects in your projects, then this Flash tutorial will help you learn how you can create a magnifying glass effect in ActionScript 3.0.]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;"><a href=" http://www.flickr.com/photos/sparkle_fish/" target="_blank"></a></p>
<p><img class="aligncenter size-full wp-image-2559" title="MAGNIFYING GLASS EFFECT" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/11/MAGNIFYING-GLASS-EFFECT2.jpg" alt="MAGNIFYING GLASS EFFECT" width="580" height="212" /></p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/kremovich/" target="_blank">Photo source</a></p>
<p>If you like using cool effects in your projects, then this Flash tutorial will help you learn how you can create a magnifying glass effect in ActionScript 3.0.</p>
<p>It&#8217;s an easy two-steps tutorial that shouldn&#8217;t take you more than 15 minuted to complete. <a href="http://www.flashcomponents.net/tutorials/magnifying_glass_in_actionscript_3.0_with_displacementmapfilter.html" target="_blank">Download the source code</a> and start creating the effect.</p>
<p>Don’t forget to <a href="http://www.flashcomponents.net/author/firecode.html" target="_blank">visit Firecode’s portfolio</a> for other excellent tutorials and Flash components.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fflash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0%2F&amp;t=Flash%20Tutorial%3A%20Create%20a%20Magnifying%20Glass%20Effect%20in%20ActionScript%203.0" id="facebook_share_button_2545" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2545') || document.getElementById('facebook_share_icon_2545') || document.getElementById('facebook_share_both_2545') || document.getElementById('facebook_share_button_2545');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2545') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/flash-tutorial-create-a-magnifying-glass-effect-in-actionscript-3-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Freebie: Sepia Flash Photo Gallery</title>
		<link>http://www.flashxml.com/free-flash-components/flash-freebie-sepia-flash-photo-gallery/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-freebie-sepia-flash-photo-gallery</link>
		<comments>http://www.flashxml.com/free-flash-components/flash-freebie-sepia-flash-photo-gallery/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 13:25:53 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Free Flash Components]]></category>
		<category><![CDATA[flash photo gallery]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2207</guid>
		<description><![CDATA[This awesome component made by FWDesign might come in handy for those of you who are looking for a free Flash photo gallery with scrollable thumbs.

The cool thing about this gallery is that no Flash knowledge is required for setting it up, since it&#8217;s XML driven. Another great feature is that the images will adjust [...]]]></description>
			<content:encoded><![CDATA[<p>This awesome component made by <a href="http://www.flashcomponents.net/author/fwdesign.html">FWDesign</a> might come in handy for those of you who are looking for a free <a href="http://www.flashcomponents.net/components/flash_galleries_and_slide_shows.html">Flash photo gallery</a> with scrollable thumbs.</p>
<p><a href="http://www.flashcomponents.net/component/sepia_flash_xml_photo_gallery.html"><img src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/09/sepia.jpg" alt="Sepia Flash Photo Gallery" title="sepia" width="594" height="177" class="alignnone size-full wp-image-2210" /></a></p>
<p>The cool thing about this gallery is that no Flash knowledge is required for setting it up, since it&#8217;s XML driven. Another great feature is that the images will adjust according to the screen resolution.</p>
<p>Use this <a href="http://www.flashcomponents.net/component/download/2058/all">download link</a> to get the file. Source Code Included!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-sepia-flash-photo-gallery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-sepia-flash-photo-gallery%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-sepia-flash-photo-gallery%2F&amp;t=Flash%20Freebie%3A%20Sepia%20Flash%20Photo%20Gallery" id="facebook_share_button_2207" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2207') || document.getElementById('facebook_share_icon_2207') || document.getElementById('facebook_share_both_2207') || document.getElementById('facebook_share_button_2207');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2207') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/free-flash-components/flash-freebie-sepia-flash-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Scrolling Text Box</title>
		<link>http://www.flashxml.com/flash-tutorials/creating-a-scrolling-text-box/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-a-scrolling-text-box</link>
		<comments>http://www.flashxml.com/flash-tutorials/creating-a-scrolling-text-box/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 06:10:24 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2068</guid>
		<description><![CDATA[A useful flash tutorial for beginners where FireCode will show you how to deal with large amounts of text by creating a scrolling text box with a custom scroll bar. You can find the tutorial and the source files here.

You will learn 2 methods of scrolling a text:

using the scrollV propriety of the text fields
masking [...]]]></description>
			<content:encoded><![CDATA[<p>A useful flash tutorial for beginners where <a title="FireCode" href="http://www.flashcomponents.net/author/firecode.html" target="_blank">FireCode</a> will show you how to deal with large amounts of text by creating a scrolling text box with a custom scroll bar. You can find the tutorial and the source files <a href="http://www.flashcomponents.net/tutorials/scrolling_text_with_custom_scrollbar.html">here</a>.</p>
<div style="text-align:center;margin-bottom:6px;"><img class="aligncenter size-full wp-image-2069" title="scrolling_text_box" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/09/scrolling_text_box.JPG" alt="scrolling_text_box" width="479" height="109" /></div>
<p>You will learn 2 methods of scrolling a text:</p>
<ul style="list-style-type:disc;margin-left:20px;margin-bottom:6px">
<li style="list-style-type:disc;padding-top:4px;color:black;">using the <em>scrollV</em> propriety of the text fields</li>
<li style="list-style-type:disc;padding-top:4px;color:black;">masking the text field</li>
</ul>
<p>Time to complete: 15 minutes!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcreating-a-scrolling-text-box%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcreating-a-scrolling-text-box%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcreating-a-scrolling-text-box%2F&amp;t=Creating%20a%20Scrolling%20Text%20Box" id="facebook_share_button_2068" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2068') || document.getElementById('facebook_share_icon_2068') || document.getElementById('facebook_share_both_2068') || document.getElementById('facebook_share_button_2068');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2068') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/creating-a-scrolling-text-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apply CSS to HTML in Flash AS3</title>
		<link>http://www.flashxml.com/flash-tutorials/apply-css-to-html-in-flash-as3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=apply-css-to-html-in-flash-as3</link>
		<comments>http://www.flashxml.com/flash-tutorials/apply-css-to-html-in-flash-as3/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 06:19:35 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[Apply CSS to HTML in Flash AS3]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2071</guid>
		<description><![CDATA[If you are just starting out with Flash, FireCode has published a step by step Flash tutorial where he explains exactly how to incorporate HTML and CSS in Actionscript 3.0. You can find the tutorial and the source files here.
Although it`s a very easy to follow tutorial, you need to familiarize yourself with AS3 Event [...]]]></description>
			<content:encoded><![CDATA[<p>If you are just starting out with Flash, FireCode has published a step by step Flash tutorial where he explains exactly how to incorporate HTML and CSS in Actionscript 3.0. You can find the tutorial and the source files <a title="Flash Tutorials | Apply Css to HTML in Flash AS3" href="http://www.flashcomponents.net/tutorials/apply_css_to_html_in_flash_as3.html" target="_blank">here</a>.</p>
<p>Although it`s a very easy to follow tutorial, you need to familiarize yourself with AS3 Event Handling and Loaders because data will be loaded from external sources.</p>
<p>During this tutorial you will learn:</p>
<p>- how using HTML and CSS inside our flash applications can sometimes simplify  our work, especially when we are using a large amount of text fields,  each one with it&#8217;s own formatting.<br />
- how to load external text</p>
<p>To make things even easier, <a title="FireCode" href="http://www.flashcomponents.net/author/firecode.html" target="_blank">FireCode</a> has also included the source code for you to use in this tutorial.  Head on over to the tutorial section of the website to start.</p>
<p>Time to complete: 20 minutes.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fapply-css-to-html-in-flash-as3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fapply-css-to-html-in-flash-as3%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fapply-css-to-html-in-flash-as3%2F&amp;t=Apply%20CSS%20to%20HTML%20in%20Flash%20AS3" id="facebook_share_button_2071" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2071') || document.getElementById('facebook_share_icon_2071') || document.getElementById('facebook_share_both_2071') || document.getElementById('facebook_share_button_2071');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2071') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/apply-css-to-html-in-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Freebie: Image Scroller XML</title>
		<link>http://www.flashxml.com/free-flash-components/flash-freebie-image-scroller-xml/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-freebie-image-scroller-xml</link>
		<comments>http://www.flashxml.com/free-flash-components/flash-freebie-image-scroller-xml/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 11:58:32 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Free Flash Components]]></category>
		<category><![CDATA[as3 image gallery]]></category>
		<category><![CDATA[flash frebie]]></category>
		<category><![CDATA[fwdesign]]></category>
		<category><![CDATA[image scroller xml]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=2055</guid>
		<description><![CDATA[With over 6,000 downloads, this AS3 image scroller has got it going on. Use this download link to get the file and use it in your project. If you like it and want more where that came from, head on over to FWDesign's profile and check out his huge collection of creative files.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flashcomponents.net/component/image_scroller_xml.html"><img class="aligncenter size-full wp-image-2056" title="Image Scroller XML FREEBIE" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/08/Image-Scroller-XML-FREEBIE.png" alt="Image Scroller XML FREEBIE" width="585" height="191" /></a></p>
<p>With over 6,000 downloads, this AS3 image scroller has got it going on. Use this <a href="http://www.flashcomponents.net/component/download/1959/all" target="_blank">download link</a> to get the file and use it in your project. If you like it and want more where that came from, head on over to <a href="http://www.flashcomponents.net/author/FWDesign.html" target="_blank">FWDesign&#8217;s profile</a> and check out his huge collection of creative files.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-image-scroller-xml%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-image-scroller-xml%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fflash-freebie-image-scroller-xml%2F&amp;t=Flash%20Freebie%3A%20Image%20Scroller%20XML" id="facebook_share_button_2055" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2055') || document.getElementById('facebook_share_icon_2055') || document.getElementById('facebook_share_both_2055') || document.getElementById('facebook_share_button_2055');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2055') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/free-flash-components/flash-freebie-image-scroller-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Must-Have Resizable Flash Templates with Deep Linking</title>
		<link>http://www.flashxml.com/flash-categories/actionscript-3-0/must-have-resizable-flash-templates-with-deep-linking/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=must-have-resizable-flash-templates-with-deep-linking</link>
		<comments>http://www.flashxml.com/flash-categories/actionscript-3-0/must-have-resizable-flash-templates-with-deep-linking/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 09:49:09 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Templates]]></category>
		<category><![CDATA[deeplinking]]></category>
		<category><![CDATA[flash template]]></category>
		<category><![CDATA[fwdesign templates]]></category>
		<category><![CDATA[resizable flash template]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1886</guid>
		<description><![CDATA[Flash websites are becoming easier to embed, navigate and handle by the minute. One great feature that you can use to present your business is deep linking. This allows you to get a unique link for every section of the template, which is dynamically generated based on the section name. ]]></description>
			<content:encoded><![CDATA[<p>Flash websites are becoming easier to embed, navigate and handle by the minute. One great feature that you can use to present your business to clients is deep linking. This allows you to get a unique link for every section of the template, which is dynamically generated based on the section name.</p>
<p>How is this useful? Well, if you want to send a client the link for a specific image, you can do that just like with a regular HTML site.  To see how it works, here are three awesome Flash templates developed by <a href="http://www.flashcomponents.net/author/fwdesign.html" target="_blank">FWDesign</a> that you can use if you are passionate about your business and want it to grown, but don&#8217;t have the technical programmer skills to do it yourself.</p>
<p><strong>Flash Template Web Deep Linking</strong></p>
<p><strong><a href="http://www.flashcomponents.net/component/flash-template-web-deep-linking.html" target="_blank"><img class="aligncenter size-full wp-image-1887" title="Flash Template Web Deep Linking" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/07/Flash-Template-Web-Deep-Linking.jpg" alt="Flash Template Web Deep Linking" width="585" height="337" /></a><span id="more-1886"></span><br />
</strong></p>
<p>This AS3 Flash template includes galleries, a latest news category where you can also include .swf files throught the text to make it more interactive. A professional XML video player is also available and you can successfully use it to present studies or show your visitors how you can help them.</p>
<p><strong>Exclusive Photo Template &#8211; PayPal and Cart &#8211; XML Deeplinking</strong></p>
<p><a href="http://www.flashcomponents.net/component/exclusive_photo_template_paypal_and_cart_xml_deeplinking.html" target="_blank"><img class="aligncenter size-full wp-image-1889" title="Exclusive Photo Template - PayPal and Cart - XML Deeplinking" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/07/Exclusive-Photo-Template-PayPal-and-Cart-XML-Deeplinking.jpg" alt="Exclusive Photo Template - PayPal and Cart - XML Deeplinking" width="583" height="337" /></a></p>
<p>This template is ideal if you want to sell items directly from your website. It includes a cart and also allows users to purchase and pay through PayPal. You don&#8217;t need to know how to code to use this template because everything you need can be configured with external XML files.</p>
<p><strong>Exclusive Photo Template &#8211; XML Deeplinking Resizable</strong></p>
<p><a href="http://www.flashcomponents.net/component/exclusive_photo_template_-_xml_deeplinking_resizable.html" target="_blank"><img class="aligncenter size-full wp-image-1890" title="Exclusive Photo Template - XML Deeplinking Resizable" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/07/Exclusive-Photo-Template-XML-Deeplinking-Resizable.jpg" alt="Exclusive Photo Template - XML Deeplinking Resizable" width="585" height="279" /></a></p>
<p>In case you don&#8217;t need a shopping cart, this simpler version of the previous template includes everything from galleries and custom text windows, to customized color theme and HTML formatted text. This is an excellent aquisition for  photographers because you can showcase your work using any type of image format and the gallery will resize and display perfectly no matter the image size or format.</p>
<p>For other excellent Flash templates, visit FWDesign&#8217;s portfolio right<strong> </strong><a href="http://www.flashcomponents.net/author/fwdesign.html" target="_blank">here</a><strong> </strong>and let us know which one&#8217;s your favorite.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fmust-have-resizable-flash-templates-with-deep-linking%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fmust-have-resizable-flash-templates-with-deep-linking%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fmust-have-resizable-flash-templates-with-deep-linking%2F&amp;t=Must-Have%20Resizable%20Flash%20Templates%20with%20Deep%20Linking" id="facebook_share_button_1886" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1886') || document.getElementById('facebook_share_icon_1886') || document.getElementById('facebook_share_both_1886') || document.getElementById('facebook_share_button_1886');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1886') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-categories/actionscript-3-0/must-have-resizable-flash-templates-with-deep-linking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download FlashXpert&#8217;s Video Freebie</title>
		<link>http://www.flashxml.com/free-flash-components/download-flashxperts-video-freebie/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=download-flashxperts-video-freebie</link>
		<comments>http://www.flashxml.com/free-flash-components/download-flashxperts-video-freebie/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 12:35:26 +0000</pubDate>
		<dc:creator>Alice</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Video]]></category>
		<category><![CDATA[Free Flash Components]]></category>
		<category><![CDATA[download free flash]]></category>
		<category><![CDATA[flash freebie]]></category>
		<category><![CDATA[flash video players]]></category>
		<category><![CDATA[FlashXpert]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1768</guid>
		<description><![CDATA[FlashXpert has released a free version of his awesome series of Flash video players. This one's fully functional and you can try out the video player and its features before going for the commercial version that also includes the source files.]]></description>
			<content:encoded><![CDATA[<p>FlashXpert has released a free version of his awesome Flash video players series. This one is fully functional and you can try out the video player and its features before going for the commercial version that also includes the source files.</p>
<p style="text-align: center;"><a href="http://www.flashcomponents.net/component/flv_h.264_free_video_player.html" target="_blank"><br />
</a><a href="http://www.flashcomponents.net/component/flv_h.264_free_video_player.html"><img class="aligncenter size-full wp-image-1773" title="video player" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/06/videoplayer1.jpg" alt="video player" width="500" height="262" /></a></p>
<p>Click <a href="http://www.flashcomponents.net/component/flv_h.264_video_player_iii_as3/downloads.html" target="_blank">here</a> to download the player and be sure to visit <a href="http://www.flashcomponents.net/author/FlashXpert.html" target="_blank">FlashXpert</a>&#8217;s portfolio for the complete list of features that his excellent video players include.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fdownload-flashxperts-video-freebie%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fdownload-flashxperts-video-freebie%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Ffree-flash-components%2Fdownload-flashxperts-video-freebie%2F&amp;t=Download%20FlashXpert%27s%20Video%20Freebie" id="facebook_share_button_1768" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1768') || document.getElementById('facebook_share_icon_1768') || document.getElementById('facebook_share_both_1768') || document.getElementById('facebook_share_button_1768');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1768') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/free-flash-components/download-flashxperts-video-freebie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build an XML Banner Rotator in AS3 from Scratch</title>
		<link>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=build-an-xml-banner-rotator-in-as3-from-scratch</link>
		<comments>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/#comments</comments>
		<pubDate>Fri, 28 May 2010 13:08:25 +0000</pubDate>
		<dc:creator>FireCode</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[flash banner rotator]]></category>
		<category><![CDATA[flash tutorial]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1717</guid>
		<description><![CDATA[In this tutorial we will use XML , URLLoader, URLRequest, Loader, Timer,  Events classes to develop the xml driven banner in AS3.  This is an easy-to-develop type of banner that you can use to showcase your products and services.]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will use XML , URLLoader, URLRequest, Loader, Timer,  Events classes to develop the xml driven banner in AS3.  This is an easy-to-develop type of banner that you can use to showcase your products and services.</p>
<p><a href="http://www.flashcomponents.net/author/FireCode.html"><img class="aligncenter size-full wp-image-1725" title="bras3" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/05/bras31.jpg" alt="bras3" width="556" height="209" /></a><span id="more-1717"></span></p>
<p>You can download the source code<a href="http://www.flashcomponents.net/publishing/tut.rar" target="_blank"> here</a>.</p>
<p><strong>Step 1: Preparing the files</strong></p>
<p>The purpose of loading external files is to update our content without having to modify our .fla file and generate a new swf file and upload it each time we decide to change the images or the information about them.</p>
<p>First we will create a folder inside the project’s folder and we will name it <strong>images</strong>.<strong> </strong>Inside this folder<strong> </strong>we will have all our images we want to load. It’s a good idea to have all the images with the same dimensions.</p>
<p>Second, we create an XML file. Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. We will name it <strong>data.xml. </strong>Any simple text editor can create our XML file. The structure of our XML is shown below.</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="sy0">&lt;</span>?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="sy0">&gt;</span>
<span class="sy0">&lt;</span>slide DELAY=<span class="st0">&quot;2&quot;</span><span class="sy0">&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/1.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. &quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/2.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Nam blandit dictum nibh vel mattis&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/3.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Cras a magna eu libero sodales luctus nec at nulla&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/4.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Nulla sed nisi sit amet ante hendrerit ullamcorper id eu neque&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/5.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Vivamus quis turpis libero.&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;/</span>slide<span class="sy0">&gt;</span></pre></div></div>
<p>Copy and paste then save the file.</p>
<p>Now we will create the .fla file.  Open the Flash IDE and go to File, New… and choose Flash File( actionscript 3 ). Press Ctrl+F3 to bring out the swf properties panel and set the values size to 450&#215;370 px.</p>
<p>Save it in the same folder as your XML file and your <strong>images</strong> folder as BannerRotator.</p>
<p><strong>Step 2: Load and process the XML file</strong></p>
<p>Loading the data from our external xml file will require using the URLLoader and URLRequest classes, while processing it will require using the XML Class. First we will create the variables that we will be using in the entire program.</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _delay:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _total:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _images:XMLList = <span class="kw2">null</span>;</pre></div></div></p>
<p>Variable _delay will store the amount of data before the image changes to the next image. Variable _total will store the number of images. Variable _ images will store the data about our images.</p>
<p>Now we will prepare the program to load our external XML.</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _loader:URLLoader = <span class="kw2">new</span> URLLoader<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_loader.<span class="kw3">load</span><span class="br0">&#40;</span><span class="kw2">new</span> URLRequest<span class="br0">&#40;</span><span class="st0">&quot;data.xml&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
_loader.<span class="me1">addEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete, <span class="kw2">false</span>, 0, <span class="kw2">true</span><span class="br0">&#41;</span>;</pre></div></div></p>
<p>We have declared a _loader variable that will handle the loading of our file. The COMPLETE event tells the program that our XML has been loaded in our variable and it’s ready to be processed.</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> Complete<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> _xml:<span class="kw3">XML</span> = <span class="kw2">new</span> <span class="kw3">XML</span><span class="br0">&#40;</span><span class="kw3">e</span>.<span class="kw3">target</span>.<span class="kw3">data</span><span class="br0">&#41;</span>;
_loader = <span class="kw2">null</span>;
_loader.<span class="me1">removeEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete<span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>All the information from our loader will be stored into the local variable _xml. As a good practice we should clear our _loader variable and remove it’s event listener.</p>
<p>Inside our Complete function we will add the following lines of code.</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> Complete<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> _xml:<span class="kw3">XML</span> = <span class="kw2">new</span> <span class="kw3">XML</span><span class="br0">&#40;</span><span class="kw3">e</span>.<span class="kw3">target</span>.<span class="kw3">data</span><span class="br0">&#41;</span>;
_loader.<span class="me1">removeEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete<span class="br0">&#41;</span>;
_loader = <span class="kw2">null</span>;
_delay = _xml.<span class="sy0">@</span>DELAY;
_images = _xml.<span class="me1">image</span>;
_total= _images.<span class="kw3">length</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>We will use the @ operator to retrieve the attribute value we need for the _delay variable.  Variable _images will store a list with every node with the <strong>image</strong> tag. The .length() method will retrieve the number of nodes with the name <strong>image</strong> tag. Now all our variables are set.</p>
<p><strong>Step 3: Loading the external images</strong></p>
<p>In order to load an image we will use the Loader class. Several instances of this class will be created with a loop and stored inside an array for easy referencing.</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _loaders:<span class="kw3">Array</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="kw2">function</span> LoadImages<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i:<span class="kw3">int</span> = <span class="nu0">0</span>; i <span class="sy0">&lt;</span> _total; i++<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> <span class="kw3">_url</span>:<span class="kw3">String</span> = _images<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="sy0">@</span><span class="kw3">URL</span>;
<span class="kw2">var</span> _loader:Loader = <span class="kw2">new</span> Loader<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_loader.<span class="kw3">load</span><span class="br0">&#40;</span><span class="kw2">new</span> URLRequest<span class="br0">&#40;</span><span class="kw3">_url</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
_loader.<span class="me1">contentLoaderInfo</span>.<span class="me1">addEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, ImageLoaded, <span class="kw2">false</span>, 0, <span class="kw2">true</span><span class="br0">&#41;</span>;
_loaders.<span class="kw3">push</span><span class="br0">&#40;</span>_loader<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p>This loop will cycle through the XML file, extract the URL attribute of every <strong>image</strong> node,   pass it to a Loader instance and then push that instance into our array. To every Loader instance we attach an event listener that will fire a function once the image has been loaded.</p>
<p>Now we will create our function that will be fired with every image that has been loaded. But before that we will create a variable that it will check how many images have been loaded. Once we got all the images loaded we can start to slide the images.</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _counter:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">function</span> ImageLoaded<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
_counter++;
<span class="kw1">if</span> <span class="br0">&#40;</span> _counter ==  _total<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
SetupSlider <span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p><strong>Step 4: Setup the slider</strong></p>
<p>First we’re going to declare some variables that we will need and import some extra classes.</p>
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">Tween</span>;
<span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">easing</span>.<span class="me1">Strong</span>;
<span class="kw2">var</span> _next:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _timer:Timer = <span class="kw2">null</span>;
<span class="kw2">var</span> _tween:Tween = <span class="kw2">null</span>;
<span class="kw2">var</span> _container:Sprite= <span class="kw2">new</span> Sprite<span class="br0">&#40;</span><span class="br0">&#41;</span>;</pre></div></div></p>
<p>Tween class it will be responsible for our animation and Strong it will be our effect class. Variable _next will store the current image id in the array and it will help us to select the next one. In order to have our slides running, we will use the Timer class to have our code executed repeatedly. The _tween variable will be used to store our transition effect. The _container will store our actual image to be displayed.</p>
<p>Let’s modify our Complete function so we can add our _container to the dis.</p>
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;">Now we will create our SetupSlider <span class="kw2">function</span>:
<span class="br0">&#91;</span>codesyntax lang=“actionscript”<span class="br0">&#93;</span>
<span class="kw2">function</span> SetupSlider<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
addChild<span class="br0">&#40;</span>_container<span class="br0">&#41;</span>;
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>_delay<span class="sy0">*</span>1000<span class="br0">&#41;</span>;
_timer.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TimerEvent.<span class="me1">TIMER</span>, TimerListener<span class="br0">&#41;</span>;
_timer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>We will add our container to the diplay list of our swf so later we can add images. the NextImage function will display our first image from the array. Then a timer will count how long until the next image will appear. We are going to set the speed, which is stored in the _delay variable,  at which the Timer intervals are triggered when instantiating the class. The Timer receives its speed in milliseconds, so we have to multiply our speed value by 1000.  Our timer will run its code through a separate event listener. Finally, we need to start the Timer by using the <em>.start()</em> method.</p>
<p>Now let’s create our TimerListener function.</p>
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> TimerListener<span class="br0">&#40;</span><span class="kw3">e</span>:TimerEvent<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
_next++;
<span class="kw1">if</span> <span class="br0">&#40;</span>_next == _total<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_next =<span class="nu0">0</span>;
<span class="br0">&#125;</span>
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>Inside this function we set our next image to be displayed. If _next variable will be equal to the total amount of images the _next variable will be reset to start all over.</p>
<p>Finally we got to the part where we build our NextImage function.</p>
<div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">if</span><span class="br0">&#40;</span>_container.<span class="me1">numChildren</span><span class="sy0">&gt;</span>0<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_container.<span class="me1">removeChildAt</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="me1">alpha</span> = <span class="nu0">0</span>;
_container.<span class="me1">addChildAt</span><span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,0<span class="br0">&#41;</span>;
_tween = <span class="kw2">new</span> Tween<span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,<span class="st0">&quot;alpha&quot;</span>,Strong.<span class="me1">easeOut</span>,0,1,1,<span class="kw2">true</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>This function is responsible with displaying the current image set by the TimerListener function.  We check if there are any child objects inside our _container. If there is any we will remove it and clean our container then set the current image alpha to 0 ( making it invisible) so we can add a nice effect to it.  The Tween class will get this image and animate it’s alpha by making it appear slowly.</p>
<p>Now it’s time to hit Ctrl+Enter keys so we can test our movie. If everything is good with our code it should display some images that change after some time.</p>
<p>If everything is ok we should now add some info about the images that are being displayed. We will add a textfield that will contain the image description.</p>
<p>We will create a variable _text that will hold our data. Let’s modify our SetupSlider function by adding the following code.</p>
<div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _text:<span class="kw3">TextField</span> = <span class="kw2">new</span> <span class="kw3">TextField</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="kw2">function</span> SetupSlider<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
addChild<span class="br0">&#40;</span>_container<span class="br0">&#41;</span>;
_text.<span class="kw3">selectable</span>=<span class="kw2">false</span>;
_text.<span class="kw3">width</span> = <span class="nu0">450</span>;
_text.<span class="kw3">height</span> = <span class="nu0">50</span>;
_text.<span class="me1">x</span> = <span class="nu0">0</span>;
_text.<span class="me1">y</span> = <span class="nu0">300</span>;
addChild<span class="br0">&#40;</span>_text<span class="br0">&#41;</span>;
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>_delay<span class="sy0">*</span>1000<span class="br0">&#41;</span>;
_timer.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TimerEvent.<span class="me1">TIMER</span>, TimerListener<span class="br0">&#41;</span>;
_timer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>Then we modify our NextImage function to add the information of the image.</p>
<div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">if</span><span class="br0">&#40;</span>_container.<span class="me1">numChildren</span><span class="sy0">&gt;</span>0<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_container.<span class="me1">removeChildAt</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="me1">alpha</span> = <span class="nu0">0</span>;
_container.<span class="me1">addChildAt</span><span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,0<span class="br0">&#41;</span>;
_tween = <span class="kw2">new</span> Tween<span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,<span class="st0">&quot;alpha&quot;</span>,Strong.<span class="me1">easeOut</span>,0,1,1,<span class="kw2">true</span><span class="br0">&#41;</span>;
_text.<span class="kw3">text</span> = _images<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="sy0">@</span>DESCRIPTION;
<span class="br0">&#125;</span></pre></div></div></p>
<p>The last line will get the DESCRIPTION attribute of the current image being displayed and add it to our textfield.</p>
<p>Hit Ctrl+Enter key again to test our movie. Each time the image changes our text field will display the description of the current image being displayed.</p>
<p><strong> Note</strong>: A working online version should include also a preloader for the images. If they are to big the user should know that an image is being loaded and the program is working correctly.</p>
<p>-----------------------------------------------</p>
<p><strong><a href="http://www.flashcomponents.net/author/FireCode.html" target="_blank"><img class="alignleft" title="FireCode" src="http://www.flashcomponents.net/upload/avatars/big/83908.jpg" alt="" width="75" height="75" /></a> FireCode</strong> is a promising project created by a couple of   passionate  Flash developers. Our purpose is  to help you understand how   Flash works  and show you how to develop or customize your components. We hope you enjoyed this tutorial. Don’t forget to visit our   portfolio  <a href="http://www.flashcomponents.net/author/FireCode.html" target="_blank">here</a> and  to send us your questions or suggestions!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F&amp;t=%20Build%20an%20XML%20Banner%20Rotator%20in%20AS3%20from%20Scratch" id="facebook_share_button_1717" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1717') || document.getElementById('facebook_share_icon_1717') || document.getElementById('facebook_share_both_1717') || document.getElementById('facebook_share_button_1717');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1717') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

