<?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>Scott Rockers&#039; Blog &#187; Actionscript 3</title>
	<atom:link href="http://scottrockers.com/blog/tag/actionscript-3/feed" rel="self" type="application/rss+xml" />
	<link>http://scottrockers.com/blog</link>
	<description>Website Designer and Developer, Flash, Wordpress, jQuery, and Other Scripts</description>
	<lastBuildDate>Mon, 22 Aug 2011 21:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Origins XML Website – Flash and Mobile Website Template</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/origins-xml-website-%e2%80%93-flash-and-mobile-website-template</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/origins-xml-website-%e2%80%93-flash-and-mobile-website-template#comments</comments>
		<pubDate>Mon, 18 Apr 2011 14:42:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Mobile Website]]></category>
		<category><![CDATA[Origins]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1218</guid>
		<description><![CDATA[I have finally finished up my first full Flash Template Website for sale on Activeden, and its called Origins XML Website – Flash and Mobile Website Template and its a Flash XML Website that also comes with a mobile version of the template. All you have to do is update one set of xml files [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Origins XML Website - Flash and Mobile Website Template" href="http://activeden.net/item/origins-xml-website-flash-and-mobile-website/224407?ref=scottrockers" target="_blank"><img class="aligncenter size-full wp-image-1221" title="Origins XML Website - Flash and Mobile Website Template" src="http://scottrockers.com/blog/wp-content/uploads/2011/04/SRwebsite1large.jpg" alt="" width="590" height="300" /></a></p>
<p>I have finally finished up my first full Flash Template Website for sale on <a title="activeden flash files" href="http://activeden.net?ref=scottrockers" target="_blank">Activeden</a>, and its called <a title="Origins XML Website - Flash and Mobile Website Template" href="http://activeden.net/item/origins-xml-website-flash-and-mobile-website/224407?ref=scottrockers" target="_blank"><strong>Origins  XML  Website – Flash and Mobile Website Template</strong></a> and its a Flash  XML  Website that also comes with a mobile version of the  template. All you have to do is update one set of xml files and it completely generates a  mobile version of the Flash website for you. Origins is the accumulation  of all my best selling files remastered into one website with added  functionality and features. This file was 6 months in the making and its really exciting to  finally  get it live.</p>
<p>Origins Flash Website is deep-linking for added  SEO  (allowing the  user to go to particular pages by direct links), fully  XML  driven, and  modularly built. Create as many pages as you want, and reuse as many  modules as you need. From the main logo and footer text, to the main  navigation icons, everything can be changed by simply editing the  XML   settings files, so no Flash knowledge is needed.</p>
<p>The mobile site uses php to gather its content so the preview is hosted on my site, view the <a href="http://www.scottrockers.com/origins-mobile-website/">Origins Mobile Website</a> Now!</p>
<h2>Features</h2>
<ul>
<li>Fully Generated Mobile Website</li>
<li>Fully  XML  Driven</li>
<li>SWFAddress Deep Linking Menu (Added  SEO )</li>
<li>9 Page Modules (see examples and images below)</li>
<ul>
<li>Simple Page Module</li>
<li>RocFolio 1 Page Module</li>
<li>RocFolio 2 Page Module</li>
<li>jQuery: PrettyPhoto LightBox Page Module (show images or movies, including YouTube, Vimeo, and QuickTime )</li>
<li>Piecemaker 2 Page Module</li>
<li>News Feed Ticker Page Module</li>
<li>Contact Form Page Module</li>
<li>Simple Link Module</li>
<li>Loading Swf Page Module</li>
</ul>
</li>
<li>Full Music Player</li>
<li>Page Specific Backgrounds Images</li>
<li>Autostart Page Feature</li>
<li>Social Links Menu</li>
<li> PSD  File of 48 Icons Ready for Use</li>
<li> PSD  Website Template File</li>
<li>Detailed help file for installation and customization</li>
</ul>
<h2>Mobile Version Website</h2>
<p>At the present time, Flash doesn’t run well on most hand-held devices.  Heck, some devices don’t run it at all! To circumnavigate this, I  decided to create a mobile version to accompany the Flash Website. It’s  completely mobile-friendly and is created from all of the same  XML   config files used to create the Flash Site. This means there’s no need  to update a ton of other files to create the site; Edit only one set of   XML  files to update both the Flash and Mobile versions of your site!  The mobile website uses jQTouch which is a jQuery plugin for mobile web  development on the iPhone, iPod Touch, Android, and other  forward-thinking devices. <a href="http://www.scottrockers.com/origins-mobile-website/">View the Demo Here</a></p>
<p><img src="http://www.scottrockers.com/images/origins-mobilesite.jpg" alt="" /></p>
<h2>Customizable Header Area</h2>
<p>In the header section you can easily add your own logo image, and you  can either display, hide, or just deactivate the music player  altogether. All this is controlled through the  XML  config files.</p>
<h2>Customizable Menu Area</h2>
<p>In the menu section, you can easily add and remove as many menu items as  you need. You can change the icon, text, text color, and text padding.  Then easily assign each menu item to a particular module.</p>
<p><img src="http://www.scottrockers.com/images/origins-menuhover.jpg" alt="" /></p>
<h2>Customizable Footer Area</h2>
<p>In the footer section you can easily add your own footer text, and  include all of your own social media links with the associated icon.</p>
<h2>Simple Page Module</h2>
<p>The Simple Page Module is exactly that, a simple Page. You can change  the image of the page we well as any text in the scrollable  HTML  text  area. The text area supports changes in text size, color, hyper-links  and images all formatted through  HTML  documentation.</p>
<p><img src="http://www.scottrockers.com/images/origins-simplepage.jpg" alt="" /></p>
<h2>About Page Module</h2>
<p>The About Page Module is based off one of my best selling files called  RocFolio. This module is perfect for an about page, staff page, or for  anyone wanting to display their latest featured work. You can either  populate the slides with a  RSS  feed (or any feed type), or use the  sample  XML  file that’s included. If you use a feed, the content  automatically updates when a post is made to that feed.</p>
<p><img src="http://www.scottrockers.com/images/origins-aboutpage.jpg" alt="" /></p>
<h2>Portfolio Page Module</h2>
<p>The Portfolio Page Module is based off my second version of RocFolio.  This module is perfect for a portfolio page, feature page, services  page, or products page. Similar to the About Page Module, you can either  populate the slides with an  RSS  feed (or any feed type), or use the  sample  XML  file that’s included. If you use a feed, the content  automatically updates when a post is made to that feed. Also, this page  module comes with three columns of editable text.</p>
<p><img src="http://www.scottrockers.com/images/origins-portfoliopage.jpg" alt="" /></p>
<h2>Piecemaker 2 Page Module</h2>
<p>The Piecemaker 2 Page Module is built off the Piecemaker 2, a free 3D  Flash image rotator gallery. This module is perfect for displaying any  type of content including images, swf files, and videos. The Piecemaker 2  includes several new features including improved navigation, tooltips,  animated shadows, and unlimited effects. The piecemaker module does not  work with the cs3 version of the  FLA .</p>
<p><img src="http://www.scottrockers.com/images/origins-piecemaker.jpg" alt="" /></p>
<h2>Photos Page Module</h2>
<p>The Photos Page Module uses the popular jquery lightbox clone called  prettyPhoto. This module is perfect for an image gallery or slideshow.  Each image gives you the option for an description field as well.</p>
<p><img src="http://www.scottrockers.com/images/origins-photospage.jpg" alt="" /></p>
<h2>Videos Page Module</h2>
<p>The Videos Page Module uses prettyPhoto just like the photos page  module. But for this page module, you can add as many youtube, vimeo, or  .MOV video files as you want. Each video gives you the option for a  description field as well.</p>
<p><img src="http://www.scottrockers.com/images/origins-moviespage.jpg" alt="" /></p>
<h2>News Feed Page Module</h2>
<p>The News Feed Page Module is another one of my best selling files called  Flash News Feed Ticker and its compatible with all feed types (RSS and   ATOM , directions included on how to handle these feed types). This  module automatically grabs the first image in each feed post to display,  and updates automatically. If you don’t want to use a feed then you can  use the news feed sample  XML  file. You can easily change the colors,  size and several other options all through the  XML  configuration file.</p>
<p><img src="http://www.scottrockers.com/images/origins-newsfeedpage.jpg" alt="" /></p>
<h2>Link Module</h2>
<p>The Link Module allows you to make the  navigational item a link to anywhere you like.</p>
<h2>Contact Page Module</h2>
<p>The Contact Page Module allows you to setup a contact page with email  validation already included. There are also two  HTML  text areas  included on this module that are editable.</p>
<p><img src="http://www.scottrockers.com/images/origins-contactpage.jpg" alt="" /></p>
<h2>Music Player</h2>
<p>The Musicplayer can be easily customized through an  XML  configuration  file and you can change the colors and add as many songs as you like.  The music player shows the song name, the artist name, the album name,  and supports album art.</p>
<p><img src="http://www.scottrockers.com/images/origins-musicplayer.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/origins-xml-website-%e2%80%93-flash-and-mobile-website-template/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Dreamy Spoon Website</title>
		<link>http://scottrockers.com/blog/portfolio/freelance-projects/the-dreamy-spoon-website</link>
		<comments>http://scottrockers.com/blog/portfolio/freelance-projects/the-dreamy-spoon-website#comments</comments>
		<pubDate>Thu, 03 Mar 2011 21:35:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freelance Projects]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[music player]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SWFAddress]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1194</guid>
		<description><![CDATA[Yesterday, I finished developing another website called The Dreamy Spoon. The Dreamy Spoon is a Self Served Frozen Desserts Store located in Maumelle , Arkansas and it a full flash website that also has a wordpress blog with it. This has to be one the most fun websites I have done in a while, partly [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2011/03/the-dreamy-spoon-website.jpg" rel="shadowbox[post-1194];player=img;"><img class="aligncenter size-medium wp-image-1195" title="the-dreamy-spoon-website" src="http://scottrockers.com/blog/wp-content/uploads/2011/03/the-dreamy-spoon-website-300x191.jpg" alt="" width="300" height="191" /></a></td>
<td><a href="http://scottrockers.com/blog/wp-content/uploads/2011/03/the-dreamy-spoon-blog.jpg" rel="shadowbox[post-1194];player=img;"><img class="aligncenter size-medium wp-image-1196" title="the-dreamy-spoon-blog" src="http://scottrockers.com/blog/wp-content/uploads/2011/03/the-dreamy-spoon-blog-300x194.jpg" alt="" width="300" height="194" /></a></td>
</tr>
</tbody>
</table>
<p>Yesterday, I finished developing another website called <a title="The Dreamy Spoon" href="http://www.thedreamyspoon.com/" target="_blank">The Dreamy Spoon</a>. The Dreamy Spoon is a Self Served Frozen Desserts Store located in Maumelle , Arkansas and it a full flash website that also has a <a title="wordpress" href="http://wordpress.org/" target="_blank">wordpress </a>blog with it. This has to be one the most fun websites I have done in a while, partly because of the silliness of the design (which was done by Cody Scott of  <a title="Kinetic Media Solutions" href="http://web.mac.com/codylscott/iWeb/KMS/Welcome.html" target="_blank">Kinetic Media Solutions</a> ). Some of the special things about the website are they it uses <a title="SWFAddress" href="http://www.asual.com/swfaddress/" target="_blank">SWFAddress </a>to increase SEO and add the ability to go straight to a specific page, as well as a custom MP3 music player, and all the animations were pretty cool too. The website includes everything from a flavors page, a contact page, and links to the social media websites.</p>
<p>One of the hardest things to code for the website was getting the stage to resize correctly when the user resizes the browser window, because the grassy hills had to stay at the bottom and the cloud background had to scale correctly.</p>
<p>To increase SEO, I created the <a title="The Dreamy Spoon Blog" href="http://www.thedreamyspoon.com/blog" target="_blank">The Dreamy Spoon Blog</a> (made from WordPress) that the owner could add news posts and I also duplicated the flash pages  into wordpress pages and basically hide them from the user (meaning no actual links to them), but when I submit a sitemap to <a title="Google Web Mastertools" href="www.google.com/webmasters/tools" target="_blank">Google Web Mastertools</a> I will include those links so they get indexed.</p>
<p>This might be the best flash website I have done so far and it was a lot of fun to work on, let me know what you guys think.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/freelance-projects/the-dreamy-spoon-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash News Feed Ticker</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/flash-news-feed-ticker</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/flash-news-feed-ticker#comments</comments>
		<pubDate>Tue, 21 Sep 2010 19:51:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[feed reader]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[news ticker]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1146</guid>
		<description><![CDATA[I have just finished working on another file for sale on ActiveDen and its a Flash News Feed Ticker. This is the second version of my News Feed Ticker, and the biggest difference is that I implemented an XML file to style it and for customization reasons, and it has a lot of improvements including: [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://scottrockers.com/blog/wp-content/uploads/2010/09/SRnewsreader2large.jpg" rel="shadowbox[post-1146];player=img;"><img class="aligncenter size-full wp-image-1145" style="border: 1px solid white;" title="Flash News Feed Ticker" src="http://scottrockers.com/blog/wp-content/uploads/2010/09/SRnewsreader2large.jpg" alt="Flash News Feed Ticker" width="590" height="300" /></a></p>
<p>I have just finished working on another file for sale on <a title="Activeden" href="http://activeden.net/?ref=scottrockers" target="_blank">ActiveDen</a> and its a <a title="Flash News Feed Ticker" href="http://activeden.net/item/flash-news-feed-ticker/119781?ref=scottrockers" target="_blank">Flash News Feed Ticker</a>. This is the second version of my News Feed Ticker, and the biggest difference is that I implemented an XML file to style it and for customization reasons, and it has a lot of improvements including:</p>
<ul>
<li>It&#8217;s compatible with all feed types (RSS and ATOM )</li>
<li>This ticker automatically grabs the first image in each feed post to display</li>
<li>It updates automatically</li>
<li>It is completely customizable through an XML file so there is no need to even open up Flash to edit it</li>
<li>Completely re-sizable so that it fits to any size container</li>
<li>Easy to change the number of posts you want displayed</li>
</ul>
<p>This news feed ticker, or reader as some people call them, includes three different skins or themes: a dark, a light, and a social media skin. Also if you want to customize the look and feel of it, you can do this very easily by editing the colors in the XML settings file or by editing the symbols in the Flash file’s library. Also there is an in-depth help file included.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/flash-news-feed-ticker/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress and Flash 10x Cookbook Review</title>
		<link>http://scottrockers.com/blog/portfolio/freelance-projects/wordpress-and-flash-10x-cookbook-review</link>
		<comments>http://scottrockers.com/blog/portfolio/freelance-projects/wordpress-and-flash-10x-cookbook-review#comments</comments>
		<pubDate>Fri, 25 Jun 2010 21:11:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freelance Projects]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Cookbook]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1096</guid>
		<description><![CDATA[As you may know, I have completed quite a few projects and written several posts regarding the integration of Flash and WordPress. In fact, my latest project was a complete Flash and WordPress Website called RocFolio 2. A few weeks ago I was excited to be contacted by Packt Publishing. They asked me to review [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="https://www.packtpub.com/wordpress-and-flash-10x-cookbook/book"><img class="aligncenter size-full wp-image-1103" title="flash-cookbook" src="http://scottrockers.com/blog/wp-content/uploads/2010/06/flash-cookbook.jpg" alt="" width="590" height="300" /></a></p>
<p>As you may know, I have completed quite a few projects and written several posts regarding the integration of <a title="Adobe Flash" href="http://www.adobe.com/products/flash/" target="_blank">Flash</a> and <a title="Wordpress" href="http://wordpress.org/" target="_blank">WordPress</a>. In fact, my latest project was a complete <a title="Flash WordPress Website" href="http://activeden.net/item/rocfolio-2-flash-wordpress-template/101207?ref=-scottrockers" target="_blank">Flash and WordPress Website</a> called RocFolio 2.</p>
<p>A few weeks ago I was excited to be contacted by Packt Publishing. They asked me to review one of their books, &#8220;WordPress and Flash 10x Cookbook&#8221;. I was honored that they contacted me and excited for the opportunity to read through their book and see what I could learn. Here is the book information followed by my review.</p>
<p><strong>Book Information</strong></p>
<p>Full Title: <a title="Wordpress and Flash 10x Cookbook" href="https://www.packtpub.com/wordpress-and-flash-10x-cookbook/book" target="_blank">WordPress and Flash 10x Cookbook</a><br />
Author(s): Peter Spannagle, Sarah Soward<br />
Pages: 268<br />
Published: April 2010<br />
Publisher: <a title="Packt Publishing" href="http://www.packtpub.com/" target="_blank">Packt Publishing</a><br />
ISBN: 978-1-847198-82-2</p>
<p><strong>My Review</strong></p>
<p>The book as a whole is written well and includes over 50 simple and effective techniques on how to control certain tasks relating to Flash content in WordPress. The easy-to-follow step by step instructions, and pictures to help out those of us who are more visual, that accompany the techniques make integrating Flash and WordPress a fairly straightforward process.</p>
<p>This book is aimed at <em>new or intermediate</em> <em>WordPress users</em> who are interested in learning how to create the unique and media-rich sites that using plug-ins and Flash can provide, so much of the book’s content I was already fairly familiar with.  But for the newer user looking to enhance their personal or business sites and blogs, this book definitely contains strategies and techniques to help you do just that. Just remember that a working knowledge of XHTML, CSS, and graphic design is helpful and familiarity with WordPress is required, because the book does not address the basic mechanics of using WordPress itself. Also, any previous experience with Flash is helpful but not necessary.</p>
<p>Honestly, the Cookbook focused more on how to add, edit, and embed Flash into WordPress than an actual integration of the two, which is what I had originally thought it was going to be about. It also mentions several really nice WordPress plug-ins, some of which were strictly for helping you add and control Flash on your WordPress site, while others mentioned are to help you with SEO, Google Sitemaps, and optimizing your WordPress site as a whole. The Cookbook also delves into some Actionscript 3.0 scripting which is followed by examples paired with actual code. Here are links to some of the plug-ins the book mentions that I found to be particularly helpful tools in building a WordPress site:</p>
<p><a title="Kimili Flash Embed Plugin" href="http://kimili.com/plugins/kml_flashembed" target="_blank">Kimili Flash Embed Plugin</a><br />
<a title="Dean's FKCEditor Plugin" href="http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/" target="_blank">Dean&#8217;s FKCEditor  Plugin</a><br />
<a title="Google Sitemaps XML Plugin" href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Google Sitemaps XML Plugin</a><br />
<a title="SEO Title Tags Plugin" href="http://wordpress.org/extend/plugins/seo-title-tag/" target="_blank">SEO Title Tags Plugin</a><br />
<a title="FLV Embed Plugin" href="http://wordpress.org/extend/plugins/flv-embed/" target="_blank">FLV Embed Plugin</a></p>
<p>If you don&#8217;t know how to use these plug-ins, or have an overall desire to learn more about Flash content within WordPress, the <a title="Wordpress and Flash 10x Cookbook" href="https://www.packtpub.com/wordpress-and-flash-10x-cookbook/book" target="_blank">WordPress and Flash 10x Cookbook</a> definitely explains in detail the best way to do so. Overall, this book is a great reference and would be a helpful addition to your desk or workspace, especially if you’re a new or intermediate designer/developer. Hey, even if you&#8217;re an advanced user it could still come in handy, teaching you something you might have missed along the way as you taught yourself… we all have something to learn. Right?</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/freelance-projects/wordpress-and-flash-10x-cookbook-review/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash WordPress Template called RocFolio 2</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/flash-wordpress-template-called-rocfolio-2</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/flash-wordpress-template-called-rocfolio-2#comments</comments>
		<pubDate>Wed, 05 May 2010 14:24:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1079</guid>
		<description><![CDATA[I have just finished my second website template, it&#8217;s a Flash WordPress Template called RocFolio 2.  This Flash WordPress Template is perfect as a portfolio or if you want to display your latest featured work in a great way. If you use wordpress, then it automatically updates itself by getting the information from your wordpress [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://activeden.net/item/rocfolio-2-flash-wordpress-template/101207?ref=scottrockers"><img class="aligncenter size-full wp-image-1080" style="border: 1px solid white;" title="flash-wordpress-template" src="http://scottrockers.com/blog/wp-content/uploads/2010/05/flash-wordpress-template.jpg" alt="flash-wordpress-template" width="590" height="300" /></a></p>
<p>I have just finished my second website template, it&#8217;s a <a title="Flash WordPress Template" href="http://activeden.net/item/rocfolio-2-flash-wordpress-template/101207?ref=scottrockers" target="_blank">Flash WordPress Template</a> called RocFolio 2.  This Flash WordPress Template is perfect as a portfolio or if you  want to display your latest featured work in a great way. If you use wordpress, then it  automatically updates itself by getting the information from your  wordpress site after you make new posts. If you don’t have a wordpress  blog, a sample  XML  file is included that you can use. This template is  very easy to use, easy to setup, and easy to customize all through  XML  . RocFolio 2 comes with a help file and 5 different themes. The different flash themes include a Dark, Light, Bokeh, Starfield, and Two-Tone version, or  you can customize the look and feel of it very easily. Also, each templates include  a contact form with error checking, and a muic player with tons of features. This Flash WordPress Template includes navigation for going between multiple Feeds (or multiple  sample xml files) or external links, and another navigational menu  that can be used as social media menu that has a special random letter hover effect. Like I have said before, if you use wordpress then it automically updates itself through the RSS feed of the site, and then it automatically grabs the first image in the post to display. This template can be customizable through 4 simple XML files, uses tweener for smooth transitions, and has a 3 column layout layout with headers that have the ability to add an image,  use text, or both. There are tons of other features and options, and I hope you enjoy it.</p>
<p>RocFolio 2 is the second version of one of my best selling items on <a title="Flash Website Templates" href="http://activeden.net?ref=scottrockers" target="_blank">ActiveDen.net</a>.  First first version, RocFolio, is more geared towards being a <a title="flash and wordpress portfolio template" href="http://activeden.net/item/rocfolio-flash-and-wordpress-portfolio-template/75270?ref=scottrockers" target="_blank">Flash and WordPress Portfolio Template</a>, because it can only take in a single RSS Feed, unlike RocFolio 2 where you can go between multiple rss feeds or wordpress categories.  Below is a preview image of RocFolio. It its not fully customizable by XML like RocFolio 2 is but its still really easy to use and setup through  Flash.</p>
<p style="text-align: center;"><a href="http://activeden.net/item/rocfolio-flash-and-wordpress-portfolio-template/75270?ref=scottrockers"><img class="aligncenter size-full wp-image-1081" style="border: 1px solid white;" title="flash-and-wordpress-portfolio-template" src="http://scottrockers.com/blog/wp-content/uploads/2010/05/flash-and-wordpress-portfolio-template.jpg" alt="flash-and-wordpress-portfolio-template" width="590" height="300" /></a></p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/flash-wordpress-template-called-rocfolio-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading Multiple XML Files in Flash</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/loading-multiple-xml-files-in-flash</link>
		<comments>http://scottrockers.com/blog/resources/simple-code-tricks/loading-multiple-xml-files-in-flash#comments</comments>
		<pubDate>Wed, 21 Apr 2010 20:01:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Simple Code Tricks]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1044</guid>
		<description><![CDATA[While working on my second version of RocFolio, I came across a few errors while trying to load multiple xml files in Flash AS3. When loading the files sometimes Flash would randomly put additional characters at the end of my xml file giving me parsing errors. So I had to figure out a way to [...]]]></description>
			<content:encoded><![CDATA[<p>While working on my second version of <a href="http://activeden.net/item/rocfolio-flash-and-wordpress-portfolio-template/75270?ref=scottrockers">RocFolio</a>, I came across a few errors while trying to load multiple xml files in Flash AS3. When loading the files sometimes Flash would randomly put additional characters at the end of my xml file giving me parsing errors. So I had to figure out a way to cut those out, and I&#8217;ll try to explain real quick what I did. </p>
<p>So to load your XML you have to create your load and request variables and then you should create a few event listeners for progress and complete events, like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLLoader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLLoader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> requestURL<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span>xmlfilename<span style="color: #000066; font-weight: bold;">.</span>xml<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//create progress and complete event listeners for the loader, and load the urlrequest</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">ProgressEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PROGRESS</span><span style="color: #000066; font-weight: bold;">,</span> getBytesLoop<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> loadXML<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>Now in your loadXML function all you have to do is figure out where the xml file actually ends, and then index that spot and then cut the rest of the string out with the substring() command. Here is how you do that.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//function loadxml loads the xml and handles assigning to places</span>
<span style="color: #339966; font-weight: bold;">function</span> loadXML<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> dataString<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> finalString<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> endofString<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
        <span style="color: #009900; font-style: italic;">//find out where the end of the xml file is, however your set it up it should be the last closing tag, this one is &lt;/settings&gt;</span>
	endofString = dataString<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">indexOf</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;&lt;/settings&gt;&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//cut out the good part of the xml using substring, then use 0 as your starting point to where you got your endOfString</span>
        <span style="color: #009900; font-style: italic;">//make sure to add whatever amount you need to be at the end of the your last closing tag, &lt;/settings&gt; has 11 characters in it so +11</span>
	finalString = dataString<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">substring</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> endofString<span style="color: #000066; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">11</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//then assign the finalstring to your XML variable</span>
	<span style="color: #0033ff; font-weight: bold;">try</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> theXML<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span>finalString<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">catch</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TypeError</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #009900; font-style: italic;">//loader.load(requestURL);</span>
		<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;A TypeError has occurred : <span style="">\r</span><span style="">\t</span>&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> e<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//then go on with setting up your XMLLists so you can access the data how you want</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>So hopefully this helps those out there that are getting weird parsing errors when trying to load multiple XML files. I know I tried finding the solution out on the web and couldn&#8217;t so that&#8217;s why I wrote this, if it helps you out please leave a comment.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/simple-code-tricks/loading-multiple-xml-files-in-flash/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Flash Horizontal Menu</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/new-flash-horizontal-menu</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/new-flash-horizontal-menu#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:59:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=1007</guid>
		<description><![CDATA[I have another file for sale on ActiveDen and it&#8217;s called Flash Horizontal Menu. This flash horizontal menu is great for any site or flash project. It is written in AS3 (Actionscript 3.0) and can be used as the navigation on any website and is super easy to use and setup. This menu supports loading [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="shadowbox;width=580;height=290;" href="http://scottrockers.com/blog/wp-content/uploads/2010/03/menupreview.swf"><img class="aligncenter size-full wp-image-1009" title="flashmenu" src="http://scottrockers.com/blog/wp-content/uploads/2010/03/flashmenu.jpg" alt="" width="590" height="300" /></a><br />
I have another file for sale on <a title="Flash Files for sale" href="http://www.activeden.net?ref=scottrockers" target="_blank">ActiveDen </a>and it&#8217;s called <a title="Flash Horizontal Menu" href="http://activeden.net/item/flash-horizontal-menu/92745?ref=scottrockers" target="_blank">Flash Horizontal Menu</a>. This flash horizontal menu is great for any site or flash project. It is written in AS3 (Actionscript 3.0) and can be used as the navigation on any website and is super easy to use and setup. This menu supports loading swfs, going to frame labels, frame numbers, external links, and calling functions. If you want to use it in your flash file just drag and drop it. If you don’t know Flash and you are linking to several web pages, use the provided swf and XML file and you don’t even have to open up Flash. Some of the special features are that its customizable by XML, you can easily change the width and height, and a special javascript function handles the resizing in the browser. There is no need to even open the flash file, unless you want to use it in another Flash project then its just drag and drop, easily change the initial font color and the hover font color, easily change the font size and font type, easily change the space between items and navigation padding on the left to easily center it, it handles most html tags for even more customization, and you can add as many items to the menu as you want.Click the image above to view the flash in action.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/new-flash-horizontal-menu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini RocPod &#8211; XML Flash Music MP3 Player</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/mini-rocpod-xml-flash-music-mp3-player</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/mini-rocpod-xml-flash-music-mp3-player#comments</comments>
		<pubDate>Fri, 19 Feb 2010 21:20:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[music player]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=937</guid>
		<description><![CDATA[I have another file for sale on ActiveDen, its called Mini RocPod &#8211; XML Flash Music MP3 Player. Some of the special features of this flash mp3 player is that it is fully XML driven, it streams the mp3s, you can add unlimited amount of songs, it has auto start feature, you can auto hide [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="shadowbox;width=590;height=300;" href="http://scottrockers.com/blog/wp-content/uploads/2010/02/preview.swf"><img class="aligncenter size-full wp-image-938" style="border: 1px solid white;" title="minirocpod" src="http://scottrockers.com/blog/wp-content/uploads/2010/02/minirocpod.jpg" alt="" width="588" height="298" /></a></p>
<p>I have another file for sale on <a title="activeden - flash files for sale" href="http://www.activeden.net?ref=scottrockers" target="_blank">ActiveDen</a>, its called <a title="Mini RocPod - XML Flash Music MP3 Player" href="http://activeden.net/item/mini-rocpod-xml-flash-music-mp3-player/86882?ref=scottrockers" target="_blank">Mini RocPod &#8211; XML Flash Music MP3 Player</a>. Some of the special features of this flash mp3 player is that it is fully  XML driven, it streams the mp3s, you can add unlimited amount of songs, it has auto start feature, you can auto hide the panels on start up or show them on start up, it can be easily added to actionscript3 files by just dragging and dropping. you can easily change the color of the music player through the xml, it displays album art, and it has 7 different background skins or art to choose from.  I used a lot of the same functionality as my first flash music player I creatd,  the RocPod &#8211; Flash and XML MP3 Player, but I wanted something that was a little more standard so I took out the circular scroll wheel volume controller and the ipod style menu. I still wanted to mix it up a bit so I added 7 different background arts and the hide-able panels  and appropriate settings in the xml for them. In the end I was really happy with the design.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/mini-rocpod-xml-flash-music-mp3-player/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PureMVC &#8211; A Lightweight Open Source Framework for Flash</title>
		<link>http://scottrockers.com/blog/resources/useful-websites/puremvc-a-lightweight-open-source-framework-for-flash</link>
		<comments>http://scottrockers.com/blog/resources/useful-websites/puremvc-a-lightweight-open-source-framework-for-flash#comments</comments>
		<pubDate>Mon, 01 Feb 2010 20:05:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Useful Websites]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[PureMVC]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=861</guid>
		<description><![CDATA[I was looking around on the internet and come across the PureMVC website and was pretty impressed. PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept. This concept is an architectural pattern used in coding that isolates the application logic for the user from the GUI, allowing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-862" title="puremvc-icon" src="http://scottrockers.com/blog/wp-content/uploads/2010/02/puremvc-icon.jpg" alt="" width="318" height="200" /></p>
<p>I was looking around on the internet and come across the <a title="PureMVC" href="http://puremvc.org/component/option,com_frontpage/Itemid,1/http://" target="_blank">PureMVC</a> website and was pretty impressed. PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept. This concept is an architectural pattern used in coding that isolates the application logic for the user from the GUI, allowing development to come from different places &#8220;permitting independent development, testing and maintenance of each&#8221;.  PureMVC is open source and was originally implemented in the ActionScript 3 language for use with Adobe Flex, Flash and AIR, is now being ported to all major development platforms. I have taken a very quick look at it but it seems very cool. An example of this in use is the <a title="t-mobile" href="http://www.t-mobile.com/" target="_blank">T-mobile website</a>, which has a very cool flash GUI on the front page, take a look and see what I mean. The picture above is taken from the PureMVC website.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/useful-websites/puremvc-a-lightweight-open-source-framework-for-flash/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Text Ticker / Scrolling Text in AS3 Revisited</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/flash-text-ticker-scrolling-text-in-as3-revisited</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/flash-text-ticker-scrolling-text-in-as3-revisited#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:30:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[scrolling text]]></category>
		<category><![CDATA[text ticker]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=846</guid>
		<description><![CDATA[After looking at my google analytics for some time, I noticed I get  a lot of hits from this post:  &#8220;Flash Text Ticker / Scrolling Text in Actionscript 3.0&#8220;.   Its a basic tutorial on how to create scrolling text in Flash. I wanted to revisit that component and make it better, and integrate it with [...]]]></description>
			<content:encoded><![CDATA[<p>After looking at my google analytics for some time, I noticed I get  a lot of hits from this post:  &#8220;<a title="Text Ticker / Scrolling Text" href="http://scottrockers.com/blog/resources/tutorials/flash-ticker-scrolling-text-in-actionscript-3-0" target="_blank">Flash Text Ticker / Scrolling Text in Actionscript 3.0</a>&#8220;.   Its a basic tutorial on how to create scrolling text in Flash. I wanted to revisit that component and make it better, and integrate it with a XML file so users can easily edit things. I have finally finished working on it and it got approved for sale on activeden. Its called <a title="flash text ticker / scrolling text" href="http://activeden.net/item/flash-text-ticker-scrolling-text-actionscript-3/83544?ref=scottrockers" target="_blank">Flash Text Ticker / Scrolling Text Actionscript 3</a> and here are some of its features, and you click the image below to view the fullscreen preview:</p>
<ul>
<li>Fully Customizable by  XML</li>
<li>Easily change the width and height, and a special javascript function handles the resizing in the browser</li>
<li>No need to even open the flash file</li>
<li>3 Different direction types to choose from</li>
<li>Easily change the scrolling speed, delay time, and duration</li>
<li>Easily change the font size, font color, font type, and link color</li>
<li>Handles most html tags for even easier customization</li>
<li>Add as many items as you want (Displaying one at a time)</li>
</ul>
<p style="text-align: center;"><a title="Text Ticker / Scrolling Text" href="http://activeden.net/item/flash-text-ticker-scrolling-text-actionscript-3/full_screen_preview/83544?ref=scottrockers" target="_blank"><img class="aligncenter size-full wp-image-847" style="border: 1px solid white;" title="flashtextticker" src="http://scottrockers.com/blog/wp-content/uploads/2010/01/flashtextticker.jpg" alt="" width="590" height="300" /></a></p>
<p style="text-align: left;">Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/flash-text-ticker-scrolling-text-in-as3-revisited/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pulsing Circular Preloader</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/pulsing-circular-preloader</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/pulsing-circular-preloader#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:04:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=833</guid>
		<description><![CDATA[I have created another preloader and had it approved for sale on ActiveDen. It is a Pulsing Circular preloader, and its has a few really nice features I worked on. For one its really easy to use, all you have to do is just drag and drop the preloader movieclip to your flash file, its [...]]]></description>
			<content:encoded><![CDATA[<p>I have created another preloader and had it approved for sale on <a title="ActiveDen" href="http://activeden.net" target="_blank">ActiveDen</a>. It is a <a title="Flash preloader" href="http://activeden.net/item/pulsing-circular-preloader/81134?ref=scottrockers" target="_blank">Pulsing Circular preloader</a>, and its has a few really nice features I worked on. For one its really easy to use, all you have to do is just drag and drop the preloader movieclip to your flash file, its really easy to customize and change the colors, also there is a variable in the actionscript that you can changes the amount of time its displayed for and how many times it circles before showing the loaded content. Also, I made it so this moveclip is centered on the stage vertically and horizontally at all times, even if the browser window is resized. Click the image below to view its animation.</p>
<p style="text-align: center;"><a rel="shadowbox;width=570;height=295;" href="http://scottrockers.com/blog/wp-content/uploads/2010/01/pulsingpreloaderpreview.swf"><img class="aligncenter size-full" style="border: 1px solid white;" title="pulsing Flash preloader" src="http://scottrockers.com/blog/wp-content/uploads/2010/01/pulsingpreloader.jpg" alt="" width="590" height="300" /></a></p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/pulsing-circular-preloader/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mechanical Futuristic Preloader</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/mechanical-futuristic-preloader</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/mechanical-futuristic-preloader#comments</comments>
		<pubDate>Tue, 22 Dec 2009 21:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=817</guid>
		<description><![CDATA[I have added another item to my ActiveDen Portfolio, it is a Mechanical Futuristic Preloader. It is really easy to use, just drag and drop the movieclip into your flash file. A version for both AS2 and AS3 are  included, and there is a special variable that allows the user to display it for a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="shadowbox;width=590;height=300;" href="http://scottrockers.com/blog/wp-content/uploads/2009/12/preview.swf"><img class="aligncenter size-medium wp-image-816" style="border: 1px solid white;" title="futuristicpreloader" src="http://scottrockers.com/blog/wp-content/uploads/2009/12/futuristicpreloader.jpg" alt="" width="590" height="300" /></a></p>
<p style="text-align: left;">I have added another item to my ActiveDen Portfolio, it is a <a title="Futuristic Preloader" href="http://activeden.net/item/mechanical-futuristic-preloader/77618?ref=scottrockers" target="_blank">Mechanical Futuristic Preloader</a>. It is really easy to use, just drag and drop the movieclip into your flash file. A version for both AS2 and AS3 are  included, and there is a special variable that allows the user to display it for a certain amount of time before loading the content. Also it allows the user to control how many times the parts of the movieclip to rotate. If it doesn&#8217;t look very smooth its because my flash file in the header of the page is a memory hog, you can  go to the activeDen page to see it run as it should.</p>
<p style="text-align: left;">Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/mechanical-futuristic-preloader/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Flash Integration Portfolio Template called RocFolio</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/wordpress-flash-integration-portfolio-template-called-rocfolio</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/wordpress-flash-integration-portfolio-template-called-rocfolio#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:05:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=789</guid>
		<description><![CDATA[I have recently created a Flash template that is integrated with the WordPress backend. Click the image above to be redirected to the preview and see the flash file in action. I have added it to my activeDen Portfolio for sale. This Portfolio Template is perfect for anyone wanting to display their latest featured work. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://activeden.net/item/rocfolio-flash-and-wordpress-portfolio-template/full_screen_preview/75270"><img class="aligncenter size-full wp-image-790" style="border: 1px solid white;" title="SRportfolioPage1Large" src="http://scottrockers.com/blog/wp-content/uploads/2009/12/SRportfolioPage1Large.jpg" alt="SRportfolioPage1Large" width="590" height="300" /></a></p>
<p>I have recently created a Flash template that is integrated with the WordPress backend. Click the image above to be redirected to the preview and see the flash file in action. I have added it to my <a href="http://activeden.net/user/scottrockers/portfolio?ref=scottrockers">activeDen Portfolio</a> for sale. This Portfolio Template is perfect for anyone wanting to display their latest featured work. It automatically updates itself by getting the information from your wordpress RSS Feed (You can even link it to a particular Category). </p>
<p>I have talked about WordPress Flash Integration before in several tutorials showing you how to do it, here are links to those:<br />
<a href="../blog/resources/tutorials/update-wordpress-and-flash-integration">Update: WordPress and Flash Integration part I</a> (AS2)<br />
<a  href="../blog/resources/tutorials/update-wordpress-and-flash-integration-part-ii">Update: WordPress and Flash Integration part II</a> (AS3)<br />
<a href="../blog/resources/tutorials/update-wordpress-and-flash-integration-part-iii">Update: WordPress and Flash Integration part III</a> (AS3)</p>
<p>If you don’t have a wordpress blog, a sample XML file is included that you can use. This template is very easy to use, easy to setup, and easy to customize. Here are some of its&#8217; features:</p>
<ul>
<li>Includes 3 Skins: Dark, Light, and Colored. Or you can customize the look and feel of it very easily</li>
<li>Includes Contact Form with error checking</li>
<li>Resizes Automatically to fit any screen size</li>
<li>One click linking</li>
<li>Automatically Updates</li>
<li>No XML Required (unless you want to use the sample XML included)</li>
<li>Automatically Grabs the first image in the post to display</li>
<li>Uses Tweener for smooth transitions</li>
</ul>
<p>External resources used in Template: <a href="http://wefunction.com/2008/07/function-free-icon-set/">Function Icon Set</a></p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/wordpress-flash-integration-portfolio-template-called-rocfolio/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 Fix for the Flash Fullscreen Problem</title>
		<link>http://scottrockers.com/blog/resources/flash-information/actionscript-3-fix-for-the-flash-fullscreen-problem</link>
		<comments>http://scottrockers.com/blog/resources/flash-information/actionscript-3-fix-for-the-flash-fullscreen-problem#comments</comments>
		<pubDate>Tue, 15 Dec 2009 15:03:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Information]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Fullscreen]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=783</guid>
		<description><![CDATA[I have come across an error while working with Flash Fullscreen. The problem occurs when you have certain publish settings. The publish setting are in the html tab -&#62; Window Mode -&#62; Transparent Windowless. So the SWF file is basically transparent like a PNG image. It has trouble knowing where the stage is on this [...]]]></description>
			<content:encoded><![CDATA[<p>I have come across an error while working with Flash Fullscreen. The problem occurs when you have certain publish settings. The publish setting are in the html tab -&gt; Window Mode -&gt; Transparent Windowless. So the SWF file is basically transparent like a PNG image. It has trouble knowing where the stage is on this setting. So I came up with  a work around or fix that takes care of this. To fix this you have to create a background movieclip that resizes to the stage size that is hidden as well, so its alpha is zero, so that Flash recoginzes that your mouse is still over the swf file, I know its weird but this works.</p>
<p>So add a movieclip to the stage that is the same size of the stage, but make the color&#8217;s alpha zero. Make sure the instance name is &#8220;bg&#8221; then in the actionscript add this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;">    <span style="color: #009900; font-style: italic;">//import library files</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #009900; font-style: italic;">//reset the background movieclip function</span>
    resetBGsize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #009900; font-style: italic;">//set the stage scalemode and alignment to no scale and top left</span>
    <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #009900; font-style: italic;">// add an event listener to the stage for when it is resized</span>
    <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">RESIZE</span><span style="color: #000066; font-weight: bold;">,</span> onResizeStage<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #009900; font-style: italic;">//onresizestage function for the event listener, calls resetBGsize</span>
    <span style="color: #339966; font-weight: bold;">function</span> onResizeStage<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
       resetBGsize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #009900; font-style: italic;">//resetbgsize function resizes the background movieclip and centers it</span>
    <span style="color: #339966; font-weight: bold;">function</span> resetBGsize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
       bg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span><span style="color: #000066; font-weight: bold;">;</span>
       bg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span><span style="color: #000066; font-weight: bold;">;</span>
       bg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span> <span style="color: #009966; font-style: italic;">/ 2 - bg.width /</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
       bg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageHeight</span> <span style="color: #009966; font-style: italic;">/ 2 - bg.height /</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Hope this helps someone out.</p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/flash-information/actionscript-3-fix-for-the-flash-fullscreen-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 Preloader</title>
		<link>http://scottrockers.com/blog/resources/tutorials/flash-as3-preloader</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/flash-as3-preloader#comments</comments>
		<pubDate>Thu, 19 Nov 2009 21:37:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[preloader]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=708</guid>
		<description><![CDATA[I wanted to write a basic tutorial on creating a simple flash AS3 (actionscript 3) preloader. Also, I am going to talk about some of the issues that I came across during the process that might help out other designers and developers. You can see the preloader in action by clicking the image below and [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to write a basic tutorial on creating a simple flash AS3 (actionscript 3) preloader. Also, I am going to talk about some of the issues that I came across during the process that might help out other designers and developers. You can see the preloader in action by clicking the image below and the code is below that. The comments in the code should help explain exactly what I am doing and be a basic tutorial for any beginner. This preloader is easy to use, just change one line of code, the line defining the name of the swf you want to load, and you can easily change the color too. The download link is below the code, but please give me credit when using it.</p>
<p>One of the first problems I encountered is when I add the url loader with this line of code, &#8220;addChild(loader);&#8221; Most other tutorials will tell you to put this in your eventlistener complete function, but I have come across several problems when doing that such as the ugly &#8220;1009 cannot access a property or method of a null object reference&#8221; error.&#8221; The reason you get this is because you are trying to do something with the loader before its actual loaded into memory. So I just add the &#8220;addChild(loader)&#8221; outside of any eventlistener and it resolves it. Then, I add another function inside of the eventlistener complete function to handle any tweens or effects on the preloader itself after its done loading.</p>
<p>Another problem I come across is the text field not fading away when tweening it. This is a textfield problem, I can&#8217;t explain why its doing it, it just is, so the work around there is to make it a movie clip and change that movieclip&#8217;s blend mode to anything but normal and then the tweens will handle it correctly.</p>
<p>Make sure to check out some of my advanced preloaders for sale on my <a title="Scott Rockers ActiveDen Portfolio" href="http://activeden.net/user/scottrockers?ref=scottrockers" target="_blank">activeden portfolio</a> and please buy one if they spark your interest. A nicely designed preloader can really impress your client and its only costs a few bucks.</p>
<p style="text-align: center;"><a rel="shadowbox;width=300;height=100;" href="http://scottrockers.com/blog/wp-content/uploads/2009/11/flashPreloader.swf"><img class="aligncenter size-full wp-image-709" title="flashas3preloader" src="http://scottrockers.com/blog/wp-content/uploads/2009/11/flashas3preloader.jpg" alt="flashas3preloader" width="303" height="104" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//import tweening libraries</span>
<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>Tween<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//stop command</span>
<span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//initalize percent, loaded, and total variables for preloader</span>
<span style="color: #6699cc; font-weight: bold;">var</span> percent<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> loaded<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> total<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//intialize loader variable</span>
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Loader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Loader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//set up the listener for the loader object to get the progress of the download</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contentLoaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">ProgressEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PROGRESS</span><span style="color: #000066; font-weight: bold;">,</span> getBytesLoop<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">//set up the listener for the loader object to call loadingDone function when loading is done</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contentLoaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> loadingDone<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">//set up the listener for the on enterframe event, this is called all the time</span>
mypreloader<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span>preloaderMotion<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//load the swf you want</span>
<span style="color: #009900; font-style: italic;">//***change this swf name to the one you want to load****</span>
<span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;testContent.swf&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//add the loader to the stage</span>
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">loader</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//getbytesloop function sets the info of the loaded swf during the progress of the load</span>
<span style="color: #339966; font-weight: bold;">function</span> getBytesLoop<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ProgressEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//set the total and loaded variable for the progress of the preloader</span>
	total = e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bytesTotal</span><span style="color: #000066; font-weight: bold;">;</span>
	loaded = e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bytesLoaded</span><span style="color: #000066; font-weight: bold;">;</span>
	percent = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">floor</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>loaded <span style="color: #000066; font-weight: bold;">/</span> total<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//make the text on the screen show how much is loaded</span>
	textMC<span style="color: #000066; font-weight: bold;">.</span>myText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = percent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//loadingDone function hides the preloader when its done</span>
<span style="color: #339966; font-weight: bold;">function</span> loadingDone<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	hidePreloader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//preloader motion function give motion to the preloader, add effects here to make your preloader move</span>
<span style="color: #339966; font-weight: bold;">function</span> preloaderMotion<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	mypreloader<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//hidepreloader function, fades away all the objects in the preloader and shows the loaded content on the screen</span>
<span style="color: #339966; font-weight: bold;">function</span> hidePreloader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> myTween2<span style="color: #000066; font-weight: bold;">:</span>Tween = <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span>mypreloader<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;alpha&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Strong<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> myTween3<span style="color: #000066; font-weight: bold;">:</span>Tween = <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span>textMC<span style="color: #000066; font-weight: bold;">.</span>myText<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;alpha&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Strong<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.scottrockers.com/downloads/flashas3preloader.zip">Download Flash AS3 Preloader</a></p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/flash-as3-preloader/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RocPod, a Flash Music Player, Added to ActiveDen</title>
		<link>http://scottrockers.com/blog/portfolio/sellable-items/added-a-music-player-to-flashden</link>
		<comments>http://scottrockers.com/blog/portfolio/sellable-items/added-a-music-player-to-flashden#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:00:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sellable Items]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[ActiveDen]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[music player]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=646</guid>
		<description><![CDATA[I have finally finished the flash music player I have been working on for a while. There were a few goals I had in mind for this project.  I wanted the user to have the option to  change the color scheme as well as add songs to it easily. So I integrated a XML file [...]]]></description>
			<content:encoded><![CDATA[<p>I have finally finished the flash music player I have been working on for a while. There were a few goals I had in mind for this project.  I wanted the user to have the option to  change the color scheme  as well as add songs to it easily. So I integrated a XML file for the flash file to read in from. I was pretty happy with the outcome. I had to go through a couple changes on it because initially it looked a little to close to an actual ipod. I did keep most of the functionality that I wanted, like the ipod like volume controller as well as a sectioned menu to break up the songs into Albums, Artists, and Genres too. Click on the image below to preview the item, if you want to purchase it, you can go to my <a href="http://activeden.net/user/scottrockers/portfolio" target="_blank">ActiveDen Portfolio</a> page and do that there.</p>
<p style="text-align: center;"><a rel="shadowbox;width=590;height=300;" href="http://scottrockers.com/blog/wp-content/uploads/2009/10/preview.swf"><img class="aligncenter size-medium wp-image-651" title="rocpod" src="http://scottrockers.com/blog/wp-content/uploads/2009/10/rocpodImage-300x152.jpg" alt="rocpod" width="300" height="152" /></a></p>
<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/portfolio/sellable-items/added-a-music-player-to-flashden/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash ipod Style Volume Controller</title>
		<link>http://scottrockers.com/blog/resources/tutorials/flash-ipod-style-volume-controller</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/flash-ipod-style-volume-controller#comments</comments>
		<pubDate>Thu, 20 Aug 2009 21:43:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=609</guid>
		<description><![CDATA[I am almost finished with the mp3player that I have been working on. I will make a post once it gets live on Flashden.  I just wanted to share how the volume controller works and the code with it. As you will see, I used the Math.atan2 function which basically returns the arc tangent of [...]]]></description>
			<content:encoded><![CDATA[<p>I am almost finished with the mp3player that I have been working on. I will make a post once it gets live on Flashden.  I just wanted to share how the volume controller works and the code with it. As you will see, I used the Math.atan2 function which basically returns the arc tangent of a point, and I used this to get the angle of where the mouse is compared to where you slide it. Click and hold over the circle and then move your mouse while still holding the mouse down to see the circle rotating. Look to my comments in my code for further explanation.</p>
<p style="text-align: center;"><a rel="shadowbox; height=200; width=200" href="http://scottrockers.com/blog/wp-content/uploads/2009/08/circleButton.swf"><img class="aligncenter size-full wp-image-610" title="ipodVolumeController" src="http://scottrockers.com/blog/wp-content/uploads/2009/08/ipodVolumeController.jpg" alt="ipodVolumeController" width="200" height="200" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//create a boolean variable for when the volume button is being pushed, and variables for the new and old rotation of that button</span>
<span style="color: #6699cc; font-weight: bold;">var</span> buttonCircleMovement<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> newAngle<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> oldAngle<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//create the inital volume variables, start at .5 or 50% volume</span>
<span style="color: #6699cc; font-weight: bold;">var</span> volumePercent<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000066; font-weight: bold;">.</span>5<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> currentVolume<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000066; font-weight: bold;">.</span>5
&nbsp;
<span style="color: #009900; font-style: italic;">//masks the volume tracker to what the currentVolume is times the width of the volume bar</span>
volumeTracker<span style="color: #000066; font-weight: bold;">.</span>volumeBarMask<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">80</span> <span style="color: #000066; font-weight: bold;">*</span> currentVolume<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//on mouse down allow the the volume to change, on mouse up make it so the volume can't change</span>
buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> volumeOn<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_UP</span><span style="color: #000066; font-weight: bold;">,</span> volumeOff<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//add event listeners for mouse movements and call the button circle move functions for the button circle</span>
buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_MOVE</span><span style="color: #000066; font-weight: bold;">,</span> buttonCircleMove<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//function is called when the mouse is down on the circle movieclip</span>
<span style="color: #339966; font-weight: bold;">function</span> volumeOn<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//set the button circle movement variable to true</span>
	buttonCircleMovement = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #009900; font-style: italic;">// get the initial angle of where your mouse click was before the rotating the object</span>
	oldAngle = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">atan2</span><span style="color: #000000;">&#40;</span>buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">mouseY</span><span style="color: #000066; font-weight: bold;">,</span> buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">mouseX</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">180</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//function is called when the mouse is up off of the circle movieclip</span>
<span style="color: #339966; font-weight: bold;">function</span> volumeOff<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//set the button circle movement variable to false</span>
	buttonCircleMovement = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//function that controls the volume bar</span>
<span style="color: #339966; font-weight: bold;">function</span> buttonCircleMove<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//if the button circle movement variable is set to true</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>buttonCircleMovement<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//as your mouse moves, calculate the angle by where your mouse is located</span>
		newAngle = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">atan2</span><span style="color: #000000;">&#40;</span>buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">mouseY</span><span style="color: #000066; font-weight: bold;">,</span> buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">mouseX</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">180</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//make a temporary variable hold the difference between the new and old angle</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> tempVar = <span style="color: #000000;">&#40;</span>newAngle <span style="color: #000066; font-weight: bold;">-</span> oldAngle<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">360</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>newAngle <span style="color: #000066; font-weight: bold;">-</span> oldAngle<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">360</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//rotate the circle to the new angle that is being calculated</span>
		buttonCircle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">rotation</span> = newAngle<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//make the old angle where the new angle is now</span>
		oldAngle = newAngle<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//get the new volume percent by adding the old percent to the temporary variable divided by 360</span>
		volumePercent = volumePercent <span style="color: #000066; font-weight: bold;">+</span> tempVar <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">360</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//if the volume percent is greater than 1 then just make it 1</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>volumePercent <span style="color: #000066; font-weight: bold;">&gt;</span>= <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			volumePercent = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900; font-style: italic;">//if the volume percent is less than 0 then just make it 0</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>volumePercent <span style="color: #000066; font-weight: bold;">&lt;</span>= <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			volumePercent = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//make the current volume equal to the volume percent</span>
		currentVolume = volumePercent<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #009900; font-style: italic;">//changes the width of the mask for the volume bar</span>
		volumeTracker<span style="color: #000066; font-weight: bold;">.</span>volumeBarMask<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">80</span> <span style="color: #000066; font-weight: bold;">*</span> currentVolume<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/flash-ipod-style-volume-controller/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flash Text Ticker / Scrolling Text in Actionscript 3.0</title>
		<link>http://scottrockers.com/blog/resources/tutorials/flash-ticker-scrolling-text-in-actionscript-3-0</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/flash-ticker-scrolling-text-in-actionscript-3-0#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[scrolling text]]></category>
		<category><![CDATA[text ticker]]></category>

		<guid isPermaLink="false">http://scottrockers.com/blog/?p=588</guid>
		<description><![CDATA[Update: I have created a text ticker / scrolling text component based off of this tutorial that is integrated with a XML file so users have more options and can make easy changes.  Click the image below to learn more. So I have been working on a mp3player that is designed similar to a ipod [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: I have created a text ticker / scrolling text component based off of this tutorial that is integrated with a XML file so users have more options and can make easy changes.  Click the image below to learn more.</strong></p>
<p style="text-align: center;"><a href="http://activeden.net/item/flash-text-ticker-scrolling-text-actionscript-3/83544?ref=scottrockers"><img class="aligncenter size-full wp-image-850" style="border: 1px solid white;" title="flashtextticker2" src="http://scottrockers.com/blog/wp-content/uploads/2009/07/flashtextticker2.jpg" alt="" width="590" height="300" /></a></p>
<p>So I have been working on a mp3player that is designed similar to a ipod with a little bit different functionality. I needed the text fields to scroll back and forth so you could see all the text written inside of it, if the field was shorter than the width of the text. After looking around for a tutorial or another persons help and not finding a thing for Actionscript 3, I decided to write my own. I am using <a href="http://blog.greensock.com/tweenliteas3/" target="_blank">Tweenlite </a>to handle the tweens because its really low on weight and its a very smooth and powerful tweening engine.  I am almost done with the mp3player and I will show you that very soon, but I wanted to post an example of the scrolling text or flash ticker (as some people call them) to you first before then. The example and code is below. I use one movieclip with an instance name of item that has two items inside of it, a dynamic textfield holding the text and a mask to only show the part I want shown.</p>
<p><a rel="shadowbox;height=101;width=200" href="http://scottrockers.com/blog/wp-content/uploads/2009/07/scrollingText.swf"><img class="aligncenter size-full wp-image-590" title="scrollingText" src="http://scottrockers.com/blog/wp-content/uploads/2009/07/scrollingText.jpg" alt="scrollingText" width="200" height="101" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//import libraries</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//make the text too long for the textfield and assign the mask for it</span>
item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;This text is too long to fit in this tiny textfield, here is the end&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mask</span> = item<span style="color: #000066; font-weight: bold;">.</span>menuItemMask<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//call the scrollWords function</span>
scrollWords<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//the scrollWords function</span>
<span style="color: #339966; font-weight: bold;">function</span> scrollWords<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #009900; font-style: italic;">//make the textfield wordwrap false and autosize to textFieldAutoSize.LEFT</span>
	item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">wordWrap</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
	item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
        <span style="color: #009900; font-style: italic;">//if the textwidth is longer than the masks width which is 173 then call goforwardtween</span>
	<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textWidth</span> <span style="color: #000066; font-weight: bold;">&amp;</span>gt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #000000; font-weight:bold;">173</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
		goForwardTween<span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//go forward tween, on complete it calls go back tween</span>
<span style="color: #339966; font-weight: bold;">function</span> goForwardTween<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	TweenLite<span style="color: #000066; font-weight: bold;">.</span>to<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#123;</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">:-</span><span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">.</span>menuItemText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textWidth</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">163</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">delay</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> onComplete<span style="color: #000066; font-weight: bold;">:</span>goBackTween<span style="color: #000066; font-weight: bold;">,</span> onCompleteParams<span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000;">&#91;</span>tf<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//go back tween, on complete it calls go forward tween</span>
<span style="color: #339966; font-weight: bold;">function</span> goBackTween<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	TweenLite<span style="color: #000066; font-weight: bold;">.</span>to<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#123;</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">delay</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> onComplete<span style="color: #000066; font-weight: bold;">:</span>goForwardTween<span style="color: #000066; font-weight: bold;">,</span> onCompleteParams<span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000;">&#91;</span>tf<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Cya</p>
]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/flash-ticker-scrolling-text-in-actionscript-3-0/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update: WordPress and Flash Integration part III</title>
		<link>http://scottrockers.com/blog/resources/tutorials/update-wordpress-and-flash-integration-part-iii</link>
		<comments>http://scottrockers.com/blog/resources/tutorials/update-wordpress-and-flash-integration-part-iii#comments</comments>
		<pubDate>Wed, 11 Mar 2009 21:56:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.scottrockers.com/blog/?p=435</guid>
		<description><![CDATA[Well, I finally had a little bit of free time and I wanted to rework all my wordpress and flash integrations stuff into ActionScript 3.  There were a couple of interesting things that came up while working on this as well.  You can&#8217;t tween the alpha property of a textfield created in actionscript (unless you [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I finally had a little bit of free time and I wanted to rework all my wordpress and flash integrations stuff into ActionScript 3.  There were a couple of interesting things that came up while working on this as well.  You can&#8217;t tween the alpha property of a textfield created in actionscript (unless you use a simple hack that I found out in the Flash live-docs online).  You have to change the blendmode style to &#8220;LAYER&#8221;, or another type, as long as its not the default style type. Weird but at least I got it to work. Also, I was going to implement the tweens using TweenLite but they also have problems accessing textfield properities, too.</p>
<p>Here is the swf, and below is the actionscript 3:</p>
<p style="text-align: center;"><a rel="shadowbox;width=400;height=200;" href="http://www.scottrockers.com/blog/wp-content/uploads/2009/03/test4.swf"><img class="aligncenter size-medium wp-image-441" title="wordpressflashex4" src="http://www.scottrockers.com/blog/wp-content/uploads/2009/03/wordpressflashex4-300x150.jpg" alt="wordpressflashex4" width="300" height="150" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>  <span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">BlendMode</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">URLLoader</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">URLRequest</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span><span style="color: #000066; font-weight: bold;">.*;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>Tween<span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>TweenEvent<span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> fl<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
    <span style="color: #3f5fbf;">/*
    * Redo of scott rockers's wordpress to flash integration but in AS3 and as3wordpressFlash class file
    */</span>
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> AS3WordpressFlash <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#123;</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">uint</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> titleList<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> linkList<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> tf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> format<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> tweenIt<span style="color: #000066; font-weight: bold;">:</span>Tween<span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> tweenIt2<span style="color: #000066; font-weight: bold;">:</span>Tween<span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> theXML<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">URLLoader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLLoader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> AS3WordpressFlash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> loadXML<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #004993;">loader</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://www.scottrockers.com/blog/wp-rss2.php&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #339966; font-weight: bold;">function</span> loadXML<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            theXML = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            titleList = theXML<span style="color: #000066; font-weight: bold;">.</span>channel<span style="color: #000066; font-weight: bold;">.</span>item<span style="color: #000066; font-weight: bold;">.</span>title<span style="color: #000066; font-weight: bold;">;</span>
            linkList = theXML<span style="color: #000066; font-weight: bold;">.</span>channel<span style="color: #000066; font-weight: bold;">.</span>item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">link</span><span style="color: #000066; font-weight: bold;">;</span>
            createTextFields<span style="color: #000000;">&#40;</span>titleList<span style="color: #000066; font-weight: bold;">,</span> linkList<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #339966; font-weight: bold;">function</span> createTextFields<span style="color: #000000;">&#40;</span>titles<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span><span style="color: #000066; font-weight: bold;">,</span> links<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XMLList</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            format = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            format<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">font</span> = <span style="color: #990000;">&quot;Arial&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
            format<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span> = 0xFFFFFF<span style="color: #000066; font-weight: bold;">;</span>
            format<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">14</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>i = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                tf = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">blendMode</span> = <span style="color: #004993;">BlendMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LAYER</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">selectable</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CENTER</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000;">&#40;</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">htmlText</span> = <span style="color: #990000;">&quot;&lt;a href=&quot;</span><span style="color: #000066; font-weight: bold;">&amp;</span>quot<span style="color: #000066; font-weight: bold;">;+</span> links<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000066; font-weight: bold;">+&amp;</span>quot<span style="color: #000066; font-weight: bold;">;</span><span style="color: #990000;">&quot; target=&quot;</span>_blank<span style="color: #990000;">&quot;&gt;&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> titles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;&lt;/a&gt;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
                tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setTextFormat</span><span style="color: #000000;">&#40;</span>format<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>tf<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                tweenIt = <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;y&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Elastic<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">50</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>i <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">30</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>i <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">15</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                tweenIt2 = <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span>tf<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;alpha&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Strong<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">100</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>i <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://scottrockers.com/blog/resources/tutorials/update-wordpress-and-flash-integration-part-iii/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

