<?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>Warm Forest Flash Blog &#187; as3</title>
	<atom:link href="http://www.warmforestflash.com/blog/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warmforestflash.com/blog</link>
	<description>A blog about Flash &#38; ActionScript 3 from a designer&#039;s perspective</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:20:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</title>
		<link>http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/</link>
		<comments>http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 23:51:48 +0000</pubDate>
		<dc:creator>warmforest</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.warmforestflash.com/blog/?p=293</guid>
		<description><![CDATA[For a recent project I needed to create a Flash navigation menu for use in a HTML site that functioned as close as possible to a normal HTML nav. In HTML you can right-click links to open them in a new window/tab but normally with Flash menus you can&#8217;t do this. Therefore I had to [...]


Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For a recent project I needed to create a Flash navigation menu for use in a HTML site that functioned as close as possible to a normal HTML nav. In HTML you can right-click links to open them in a new window/tab but normally with Flash menus you can&#8217;t do this. Therefore I had to try to create that functionality from scratch with ActionScript.</p>
<p>You can see a working example of what I came up with above in my blog header nav.</p>
<p>Flash links inside of text fields (usually set with CDATA and XML) support right-clicking to open links in new windows by default but setting up a nav that way usually doesn&#8217;t make sense and you would lose a lot of functionality doing it that way. So the trick I found was to take advantage of the fact that you can add a custom right-click context menu not just to the Flash stage but also to each individual sprite itself.</p>
<p>Here is some sample code that you can add to each of your nav items to achieve this:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">var</span> navItem:Sprite = <span class="kw2">new</span> Sprite<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> cm:<span class="kw3">ContextMenu</span> = <span class="kw2">new</span> <span class="kw3">ContextMenu</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">cm.<span class="kw3">hideBuiltInItems</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> openNewWindow:<span class="kw3">ContextMenuItem</span> = <span class="kw2">new</span> <span class="kw3">ContextMenuItem</span><span class="br0">&#40;</span><span class="st0">&quot;Open Link in New Window&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">openNewWindow.<span class="me1">addEventListener</span><span class="br0">&#40;</span>ContextMenuEvent.<span class="me1">MENU_ITEM_SELECT</span>, onOpenNewWindowSelect, <span class="kw2">false</span>, <span class="nu0">0</span>, <span class="kw2">true</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">cm.<span class="kw3">customItems</span>.<span class="kw3">push</span><span class="br0">&#40;</span>openNewWindow<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">navItem.<span class="kw3">contextMenu</span> = cm;</div>
</li>
</ol>
</div>
<p>I also tried to mimic the browser functionality of command (control on a PC) clicking to open links in new tabs and shift-clicking to open them in new windows. Using keyboard listeners I was able to get this working in Safari but sadly it doesn&#8217;t seem to work at all in Firefox for some reason. In Opera, shift-clicking opens a new tab but command-clicking just triggers the normal right-click menu. I guess it just depends on how the browser wants to handle the keyboard events.</p>
<p>I also added the ability to copy the URL to the clipboard for copying and pasting. Here is a quick snippet of code that will copy text to the system clipboard:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">System</span>.<span class="kw3">setClipboard</span><span class="br0">&#40;</span><span class="st0">&quot;Your text to copy&quot;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>So why create a menu in Flash at all if HTML natively supports these features? The main reason would be nice typography &#8211; no more using the same system fonts over and over again. Plus you can create lots of neat dividers/selected state graphics/rollovers without having to open up Photoshop.</p>
<p>Here are three versions of the Flash right-click nav that you can download for free below.</p>
<p><img src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/07/preview_01.gif" alt="TypeNav Font Option 1" /></p>
<p><a href="http://www.warmforestflash.com/products/typenav/free/typenav_font_option_1.zip">&raquo; Download now (zip)</a></p>
<p>&#8211;</p>
<p><img src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/07/preview_06.gif" alt="TypeNav Font Option 6" /></p>
<p><a href="http://www.warmforestflash.com/products/typenav/free/typenav_font_option_6.zip">&raquo; Download now (zip)</a></p>
<p>&#8211;</p>
<p><img src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/07/preview_08.gif" alt="TypeNav Font Option 8" /></p>
<p><a href="http://www.warmforestflash.com/products/typenav/free/typenav_font_option_8.zip">&raquo; Download now (zip)</a></p>
<p>&#8211;</p>
<p><em>For more info, see the <a href="http://www.warmforestflash.com/products/typenav/">TypeNav&#8482; page here</a>.</em></p>
<p>&#8211;</p>


<p>Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Flash AS3 Contact Form Using PHP</title>
		<link>http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/</link>
		<comments>http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:09:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.warmforestflash.com/blog/?p=264</guid>
		<description><![CDATA[To continue in the tradition of my AS3 scrollbar source code I released a few months back, I&#8217;m now giving away the source code for my AS3 contact form class I&#8217;ve been using in my other Flash templates, specifically the one from Cedar. The contact form class is super-customizable and simple to use. I&#8217;ve used [...]


Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To continue in the tradition of my <a href="http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/">AS3 scrollbar source code</a> I released a few months back, I&#8217;m now giving away the source code for my AS3 contact form class I&#8217;ve been using in my other Flash templates, specifically the one from <a href="http://www.warmforestflash.com/products/cedar/">Cedar</a>.</p>
<p>The contact form class is super-customizable and simple to use. I&#8217;ve used it in lots of projects and it&#8217;s easy to make it look different every time. Here is the basic usage:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">warmforestflash</span>.<span class="me1">ContactForm</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> contactForm:ContactForm = <span class="kw2">new</span> ContactForm<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">addChild<span class="br0">&#40;</span>contactForm<span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>And here is a preview:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_contact_form1_1468740752"
			class="flashmovie"
			width="650"
			height="230">
	<param name="movie" value="http://www.warmforestflash.com/blog/wp-content/uploads/2009/06/contact_form1.swf" />
	<param name="menu" value="false" />
	<param name="quality" value="high" />
	<param name="scale" value="noscale" />
	<param name="salign" value="tl" />
	<param name="wmode" value="window" />
	<param name="bgcolor" value="#ffffff" />
	<param name="allowscriptaccess" value="always" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.warmforestflash.com/blog/wp-content/uploads/2009/06/contact_form1.swf"
			name="fm_contact_form1_1468740752"
			width="650"
			height="230">
		<param name="menu" value="false" />
		<param name="quality" value="high" />
		<param name="scale" value="noscale" />
		<param name="salign" value="tl" />
		<param name="wmode" value="window" />
		<param name="bgcolor" value="#ffffff" />
		<param name="allowscriptaccess" value="always" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Pretty much everything can be easily customized including all the colors and text and validation copy. Here is how you would customize it:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">warmforestflash</span>.<span class="me1">ContactForm</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> contactForm:ContactForm = <span class="kw2">new</span> ContactForm<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Label settings</span></div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">nameText</span> = <span class="st0">&quot;Type your name here&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">emailText</span> = <span class="st0">&quot;Type your email here&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">messageText</span> = <span class="st0">&quot;Type your message here&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendButtonText</span> = <span class="st0">&quot;CONTACT ME&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendingText</span> = <span class="st0">&quot;Sending message&#8230;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">errorEmailText</span> = <span class="st0">&quot;Your email is not valid.&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">errorServerText</span> = <span class="st0">&quot;Server problems.&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">confirmationText</span> = <span class="st0">&quot;Thanks for contacting me!&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Color settings</span></div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="kw3">textColor</span> = 0xffffff;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="kw3">borderColor</span> = 0&#215;222222;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="kw3">backgroundColor</span> = 0&#215;000000;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">selectedBorderColor</span> = 0x05b59a;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">selectedBackgroundColor</span> = 0&#215;000000;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">selectedBlurAmount</span> = <span class="nu0">50</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendButtonTextColor</span> = 0xffffff;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendButtonTextRollOverColor</span> = 0xffffff;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendButtonColor</span> = 0x05b59a;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">sendButtonRollOverColor</span> = 0xff4400;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">errorColor</span> = 0xff4400;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">confirmationColor</span> = 0x05b59a;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Layout settings</span></div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">nameWidth</span> = <span class="nu0">400</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">emailWidth</span> = <span class="nu0">400</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">messageWidth</span> = <span class="nu0">550</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">messageHeight</span> = <span class="nu0">200</span>;</div>
</li>
<li class="li1">
<div class="de1">contactForm.<span class="me1">verticalSpacing</span> = <span class="nu0">10</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">addChild<span class="br0">&#40;</span>contactForm<span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>And here it is customized:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_contact_form2_2121929882"
			class="flashmovie"
			width="650"
			height="290">
	<param name="movie" value="http://www.warmforestflash.com/blog/wp-content/uploads/2009/06/contact_form2.swf" />
	<param name="menu" value="false" />
	<param name="quality" value="high" />
	<param name="scale" value="noscale" />
	<param name="salign" value="tl" />
	<param name="wmode" value="window" />
	<param name="bgcolor" value="#ffffff" />
	<param name="allowscriptaccess" value="always" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.warmforestflash.com/blog/wp-content/uploads/2009/06/contact_form2.swf"
			name="fm_contact_form2_2121929882"
			width="650"
			height="290">
		<param name="menu" value="false" />
		<param name="quality" value="high" />
		<param name="scale" value="noscale" />
		<param name="salign" value="tl" />
		<param name="wmode" value="window" />
		<param name="bgcolor" value="#ffffff" />
		<param name="allowscriptaccess" value="always" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>I&#8217;m also including an XML-powered version for people who don&#8217;t own the Flash authoring software or who don&#8217;t know any ActionScript at all. You can just drop this into an HTML page and customize everything straight through the XML without having to open Flash or mess with any ActionScript. It&#8217;s a simple way to add a contact form to any website.</p>
<p>The script that actually sends the email is written in PHP so the web server you upload it to will need to support PHP in order for the email to send.</p>
<p><a href="http://www.warmforestflash.com/blog/wp-content/uploads/2009/06/as3_contact_form.zip">&raquo; Download the contact form class and XML version</a></p>
<p>Feel free to use this code in any way you want other than selling it.</p>
<p>Have fun!</p>
<p>__</p>


<p>Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/feed/</wfw:commentRss>
		<slash:comments>107</slash:comments>
		</item>
		<item>
		<title>Free AS3 Scrollbar: Fullscreen and Resizable</title>
		<link>http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/</link>
		<comments>http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:12:16 +0000</pubDate>
		<dc:creator>warmforest</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.warmforestflash.com/blog/?p=246</guid>
		<description><![CDATA[In coincidence with the launch of my new Aspen template, I&#8217;ve decided to release for free the source code for the scrollbar I&#8217;ve been using in my other Flash templates. The scrollbar is coded in AS3 and will automatically resize according to the amount of content, unlike a lot of other Flash scrollbars. You can [...]


Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In coincidence with the launch of my new <a title="Aspen template" href="http://www.warmforestflash.com/products/aspen/">Aspen template</a>, I&#8217;ve decided to release for free the source code for the scrollbar I&#8217;ve been using in my other Flash templates. The scrollbar is coded in AS3 and will automatically resize according to the amount of content, unlike a lot of other Flash scrollbars. You can set the track color, grabber color, grabber press color, grip color, track thickness, grabber thickness, ease amount and whether or not the grabber is &#8220;shiny&#8221;.</p>
<p><em>Update [6-21-2009]: Now supports mouse wheel scrolling on the Mac using <a href="http://www.libspark.org/wiki/SWFWheel/en">SWFWheel</a>.</em></p>
<p>Here is a demo of the scrollbar in use. You can click &#8220;Add Copy&#8221; to see how it resizes:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_scrollbar_demo_1482202356"
			class="flashmovie"
			width="650"
			height="400">
	<param name="movie" value="http://www.warmforestflash.com/blog/wp-content/uploads/2009/04/scrollbar_demo.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.warmforestflash.com/blog/wp-content/uploads/2009/04/scrollbar_demo.swf"
			name="fm_scrollbar_demo_1482202356"
			width="650"
			height="400">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>You can also<a title="Sycamore template" href="http://www.warmforestflash.com/products/sycamore/"> view a demo</a> of it being used fullscreen in my Sycamore template.</p>
<p>Here is the usage for the scrollbar class:</p>
<div class="geshi no actionscript">
<div class="head">// Arguments: Content to scroll, track color, grabber color, grabber press color, grip color, track thickness, grabber thickness, ease amount, whether grabber is &#8220;shiny&#8221;</div>
<ol>
<li class="li1">
<div class="de1">_scrollBar = <span class="kw2">new</span> FullScreenScrollBar<span class="br0">&#40;</span>_content, 0&#215;222222, 0xff4400, 0x05b59a, 0xffffff, <span class="nu0">15</span>, <span class="nu0">15</span>, <span class="nu0">4</span>, <span class="kw2">true</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">addChild<span class="br0">&#40;</span>_scrollBar<span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p><a title="AS3 Scrolbar zip" href="http://www.warmforestflash.com/blog/wp-content/uploads/2009/04/as3_scrollbar.zip">» Download the demo and source code</a></p>
<p>Feel free to use this code in any way you want other than selling it.</p>
<p>Enjoy!</p>
<p>&#8211;</p>


<p>Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/feed/</wfw:commentRss>
		<slash:comments>102</slash:comments>
		</item>
		<item>
		<title>AS3 Dotted Line Class</title>
		<link>http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/</link>
		<comments>http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 03:51:39 +0000</pubDate>
		<dc:creator>warmforest</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.warmforestflash.com/blog/?p=120</guid>
		<description><![CDATA[Here is an ActionScript 3 class I use all the time to draw pixel perfect dotted lines in Flash. You can set the line width, line height, color, alpha, dot width, and dot spacing. Simple but useful! Dotted line preview: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_dotted_line_648900557"
			class="flashmovie"
			width="650"
			height="20">
	<param name="movie" value="/blog/wp-content/uploads/2009/01/dotted_line.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/blog/wp-content/uploads/2009/01/dotted_line.swf"
			name="fm_dotted_line_648900557"
			width="650"
			height="20">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Dotted line usage: import com.warmforestflash.drawing.DottedLine; var s:Shape = new DottedLine&#40;630, [...]


Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is an ActionScript 3 class I use all the time to draw pixel perfect dotted lines in Flash. You can set the line width, line height, color, alpha, dot width, and dot spacing. Simple but useful!</p>
<p><span id="more-120"></span></p>
<p>Dotted line preview:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_dotted_line_559719308"
			class="flashmovie"
			width="650"
			height="20">
	<param name="movie" value="/blog/wp-content/uploads/2009/01/dotted_line.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/blog/wp-content/uploads/2009/01/dotted_line.swf"
			name="fm_dotted_line_559719308"
			width="650"
			height="20">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Dotted line usage:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">warmforestflash</span>.<span class="me1">drawing</span>.<span class="me1">DottedLine</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> s:Shape = <span class="kw2">new</span> DottedLine<span class="br0">&#40;</span><span class="nu0">630</span>, <span class="nu0">1</span>, 0&#215;603120, <span class="nu0">0.9</span>, <span class="nu0">1</span>, <span class="nu0">2</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">addChild<span class="br0">&#40;</span>s<span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>Dashed line preview:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_dashed_line_1009263278"
			class="flashmovie"
			width="650"
			height="20">
	<param name="movie" value="/blog/wp-content/uploads/2009/01/dashed_line.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/blog/wp-content/uploads/2009/01/dashed_line.swf"
			name="fm_dashed_line_1009263278"
			width="650"
			height="20">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Dashed line usage:</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">import</span> com.<span class="me1">warmforestflash</span>.<span class="me1">drawing</span>.<span class="me1">DottedLine</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> s:Shape = <span class="kw2">new</span> DottedLine<span class="br0">&#40;</span><span class="nu0">630</span>, <span class="nu0">1</span>, 0&#215;603120, <span class="nu0">0.9</span>, <span class="nu0">10</span>, <span class="nu0">8</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">addChild<span class="br0">&#40;</span>s<span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p><a href="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/as3_dotted_lines.zip">&raquo; Download the zip containing the class and the above samples</a></p>
<p>Feel free to use it in whatever way you see fit.</p>
<p>__</p>


<p>Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/06/flash-as3-contact-form-using-php/' rel='bookmark' title='Permanent Link: Flash AS3 Contact Form Using PHP'>Flash AS3 Contact Form Using PHP</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/07/accessible-flash-nav/' rel='bookmark' title='Permanent Link: Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3'>Accessible Flash Nav: Right-Click Links to Open in New Window Using AS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Top 8 Resources for Learning ActionScript 3</title>
		<link>http://www.warmforestflash.com/blog/2009/01/top-8-resources-for-learning-actionscript-3/</link>
		<comments>http://www.warmforestflash.com/blog/2009/01/top-8-resources-for-learning-actionscript-3/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 14:31:35 +0000</pubDate>
		<dc:creator>warmforest</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.warmforestflash.com/blog/?p=26</guid>
		<description><![CDATA[After having made the switch to AS3 about a year ago I have to admit it was a huge pain for me to upgrade from AS2. A lot of that was due to the wrong approaches I took (reading a 900 page book straight through is not recommended, for one). So keep reading and learn from someone [...]


Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/03/simple-sanity-saving-tip-for-all-timeline-based-flash-projects/' rel='bookmark' title='Permanent Link: Simple Sanity-Saving Tip for All Timeline-Based Flash Projects'>Simple Sanity-Saving Tip for All Timeline-Based Flash Projects</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em>After having made the switch to AS3 about a year ago I have to admit it was a huge pain for me to upgrade from AS2. A lot of that was due to the wrong approaches I took (reading a 900 page book straight through is not recommended, for one). So keep reading and learn from someone who has made the switch. And in the end learning AS3 really will make your life easier. And note this is coming from someone with a design background so I&#8217;m not some super-genius computer nerd who has been programming in BASIC since he was three. It is possible for non-coders to learn AS3.</em></p>
<p><span id="more-26"></span></p>
<p><strong>Update:</strong> <a href="http://www.amazon.com/ActionScript-3-0-Quick-Reference-Guide/dp/0596517351/">The ActionScript 3.0 Quick Reference Guide</a> by David Stiller, Rich Shupe, Jen deHaan and Darren Richardson has been recommended to me by several readers. I haven&#8217;t personally read it but it is supposed to contain some good info on transitioning from AS2 to AS3, so I thought it deserves an honorable mention.</p>
<h4>8. Essential ActionScript 3.0 by Colin Moock</h4>
<p><a href="http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1231435871&amp;sr=8-1"><img class="alignleft size-full wp-image-61" title="Essential ActionScript 3.0 by Colin Moock" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/081.jpg" alt="08" width="250" height="155" /></a>This is <a href="http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1231435871&amp;sr=8-1"><em>the Bible</em> for ActionScript 3</a>. I saw it recommended in so many places and with so much enthusiasm that I figured it was all I needed. &#8220;If I read this book straight through I&#8217;ll be an AS3 expert&#8221;, I remember thinking. So I mustered all my will power and actually read the book cover to cover. It took two months for me to finish it. Was I instantly an AS3 expert afterwards? Hardly. Granted it did give me a good exposure to pretty much everything you&#8217;d ever need to know in AS3 but it was just so much information at once that it kind of scrambled my brain. The book goes into extreme detail about every topic in AS3. Way more than I needed to know.</p>
<p>Not that it&#8217;s not a great book though. It still has a permanent place next to my computer and not a day goes by programming that I don&#8217;t look up something in its sprawling 900 pages. Great for a reference book, yes, but not so great to start learning from. Which brings me to&#8230;</p>
<h4>7. Learning ActionScript 3.0 by Rich Shupe with Zevan Rosser</h4>
<p><a href="http://www.amazon.com/Learning-ActionScript-3-0-Beginners-Guide/dp/059652787X/ref=pd_bbs_sr_2?ie=UTF8&amp;s=books&amp;qid=1231435871&amp;sr=8-2"><img class="alignleft size-full wp-image-65" title="Learning ActionScript 3.0 by Rich Shupe with Zevan Rosser" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/07.jpg" alt="Learning ActionScript 3 by Rich Shupe with Zevan Rosser" width="250" height="155" /></a>Ok <a href="http://www.amazon.com/Learning-ActionScript-3-0-Beginners-Guide/dp/059652787X/ref=pd_bbs_sr_2?ie=UTF8&amp;s=books&amp;qid=1231435871&amp;sr=8-2">this is much better</a>. Why didn&#8217;t I start with this book? Very easy and quick to read. It lacks the level of detail of Essential ActionScript 3.0 but really you can look up the details when you actually need them. It&#8217;s all in color too which makes it much more pleasurable to read, especially for a designer.</p>
<p> </p>
<p> </p>
<h4>6. Lynda.com</h4>
<p><a href="http://movielibrary.lynda.com/html/modListing.asp?sid=81"><img class="alignleft size-full wp-image-67" title="Lynda.com" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/06.jpg" alt="Lynda.com" width="250" height="154" /></a>Lynda.com has <a href="http://movielibrary.lynda.com/html/modListing.asp?sid=81">a nice collection of videos on AS3</a>. I actually haven&#8217;t watched any of their videos on AS3 but I used their videos quite often when I was first learning AS2. You do have to pay for them but they have always been pretty high quality. You can get an annual subscription to watch all their videos for a year for $250 but it&#8217;s probably a better deal to do the $25 a month plan and try to watch all the AS3 titles in the first month or two.</p>
<p> </p>
<h4>5. Senocular&#8217;s Getting Started with ActionScript 3.0 in Adobe Flash CS3 Tutorial</h4>
<p><a href="http://www.senocular.com/flash/tutorials/as3withflashcs3/"><img class="alignleft size-full wp-image-70" title="Senocular’s Getting Started with ActionScript 3.0 in Adobe Flash CS3 Tutorial" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/05.jpg" alt="Senocular’s Getting Started with ActionScript 3.0 in Adobe Flash CS3 Tutorial" width="250" height="155" /></a>Although Senocular states it&#8217;s still &#8220;a work in progress&#8221; this tutorial contains <a href="http://www.senocular.com/flash/tutorials/as3withflashcs3/">a ton of awesome info on learning AS3</a>. The fifth page of the tutorial is particularly good as it gives a nice overview of classes for someone new to Object Oriented Programming. Probably the best first site you&#8217;ll want to read through for a good overview of AS3.</p>
<p> </p>
<p> </p>
<h4>4. Senocular&#8217;s ActionScript 3 Tip of the Day</h4>
<p><a href="http://www.kirupa.com/forum/showthread.php?t=223798"><img class="alignleft size-full wp-image-72" title="Senocular’s ActionScript 3 Tip of the Day" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/04.jpg" alt="Senocular’s ActionScript 3 Tip of the Day" width="250" height="155" /></a>Senocular makes the list again with his <a href="http://www.kirupa.com/forum/showthread.php?t=223798">never-ending forum post of ActionScript 3 tips</a>. Even though some of the tips are from 2006 they are still completely relevant today. I always learn something new whenever I skim through the pages.</p>
<p> </p>
<p> </p>
<p> </p>
<h4>3. gotoAndLearn()</h4>
<p><a href="http://www.gotoandlearn.com/"><img class="alignleft size-full wp-image-74" title="gotoAndLearn()" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/03.jpg" alt="gotoAndLearn()" width="250" height="155" /></a>Lee Brimelow is a great man. He spends his days creating <a href="http://www.gotoandlearn.com/">videos showing you how to do things in Flash</a>. And it&#8217;s not boring, irrelevant stuff either. It&#8217;s cool, useful stuff like using Papervision3D and Tweener. And best of all it&#8217;s completely free. Highly recommended.</p>
<p> </p>
<p> </p>
<h4>2. Flash Help Documentation</h4>
<p><a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/"><img class="alignleft size-full wp-image-76" title="Flash Help Documentation" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/02.jpg" alt="Flash Help Documentation" width="250" height="154" /></a>The help documentation inside Flash is probably the most overlooked resource. Everything you need to know is right there and it&#8217;s written surprisingly well for a help file. Lots of examples are given showing actual code usage. I constantly see people posting on forums asking how to do things when a simple search in the help file would tell them everything they wanted to know. Need to know how the drawing API works? Just look it up! It&#8217;s all there. You can even <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/">view it online</a>.</p>
<h4>1. Google</h4>
<p><a href="http://letmegooglethatforyou.com/?q=actionscript+3"><img class="alignleft size-full wp-image-78" title="Google" src="http://www.warmforestflash.com/blog/wp-content/uploads/2009/01/01.jpg" alt="Google" width="250" height="155" /></a>This might sound stupidly obvious but honestly just <a href="http://letmegooglethatforyou.com/?q=actionscript+3">searching on Google</a> for what you immediately need to know is the best way to learn AS3. There are so many random blogs out there and forum postings just filled with great info about whatever you need to know. Instead of going to a specific website or picking up a certain book I always find myself just going to Google time and time again.</p>
<p>I always thought once I became a good programmer I would just automatically know everything off the top of my head and I&#8217;d be able to just write programs straight through without referencing anything. I keep expecting that day to come but it never has. And it probably never will. Learning really is a never ending process. No matter how much you know you will constantly be thinking &#8220;What&#8217;s the best way to do this?&#8221;, &#8220;Is this even possible to do?&#8221; and &#8220;How have others solved this problem?&#8221;.</p>
<p>The best advice I can give is to just start creating a project in AS3 and figure it out as you go. My experience is if I need to know it to complete a project I&#8217;ll learn it &#8211; if I read it in a book I&#8217;ll just glaze over it and have to look it up again later. So if you wait until you &#8220;know&#8221; AS3 before taking on a AS3 project you&#8217;ll never do it. The right time to make the switch will never come. So just jump in and do it using the resources above as your guide.</p>


<p>Related posts:<ol><li><a href='http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/' rel='bookmark' title='Permanent Link: Free AS3 Scrollbar: Fullscreen and Resizable'>Free AS3 Scrollbar: Fullscreen and Resizable</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/01/as3-dotted-line-class/' rel='bookmark' title='Permanent Link: AS3 Dotted Line Class'>AS3 Dotted Line Class</a></li>
<li><a href='http://www.warmforestflash.com/blog/2009/03/simple-sanity-saving-tip-for-all-timeline-based-flash-projects/' rel='bookmark' title='Permanent Link: Simple Sanity-Saving Tip for All Timeline-Based Flash Projects'>Simple Sanity-Saving Tip for All Timeline-Based Flash Projects</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.warmforestflash.com/blog/2009/01/top-8-resources-for-learning-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
