<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.1.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>news</title>
		<link>http://www.davidmillington.net/news/index.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://www.davidmillington.net/news/index.php?tempskin=_rss2" />
		<description>A glimpse into the technical side of the life of David Millington!</description>
		<language>en-EU</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.1.3"/>
		<ttl>60</ttl>
				<item>
			<title>Copy Photoshop Layers To New Document</title>
			<link>http://www.davidmillington.net/news/index.php/2012/02/17/copy-photoshop-layers</link>
			<pubDate>Fri, 17 Feb 2012 11:47:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">News</category>
<category domain="alt">Applications</category>			<guid isPermaLink="false">196@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;This is a simple short tip on how to copy one or more layers and/or layer groups to a new Adobe Photoshop document.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the document you want to duplicate layers from.&lt;/li&gt;
&lt;li&gt;Create a new document you want the duplicated layers to be placed in or open a current document.&lt;/li&gt;
&lt;li&gt;In the Layers panel, select the layer(s) and/or group(s) you want to copy.&lt;/li&gt;
&lt;li&gt;Right click what you selected in the Layers panel and choose Duplicate.&lt;/li&gt;
&lt;li&gt;In the popup there is a &quot;Destination&quot; section.  In the dropdown pick the name of the document you created/opened in step 2 and click OK.&lt;/li&gt;
&lt;li&gt;Done!  If you checkout the new file you made/opened earlier in step 2 you will see your layers/groups have been duplicated to there.&lt;/li&gt;
&lt;li&gt;Alternatively, you don&#039;t have to create the new document first, in the &quot;Destinations&quot; dropdown the bottom option is &quot;New&quot; which means it will create a new document for you.  You just have to fill in the &quot;Name&quot; field which is the title for the new document.&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2012/02/17/copy-photoshop-layers&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>This is a simple short tip on how to copy one or more layers and/or layer groups to a new Adobe Photoshop document.</p>
<ol>
<li>Open the document you want to duplicate layers from.</li>
<li>Create a new document you want the duplicated layers to be placed in or open a current document.</li>
<li>In the Layers panel, select the layer(s) and/or group(s) you want to copy.</li>
<li>Right click what you selected in the Layers panel and choose Duplicate.</li>
<li>In the popup there is a "Destination" section.  In the dropdown pick the name of the document you created/opened in step 2 and click OK.</li>
<li>Done!  If you checkout the new file you made/opened earlier in step 2 you will see your layers/groups have been duplicated to there.</li>
<li>Alternatively, you don't have to create the new document first, in the "Destinations" dropdown the bottom option is "New" which means it will create a new document for you.  You just have to fill in the "Name" field which is the title for the new document.</li>
</ol><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2012/02/17/copy-photoshop-layers">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2012/02/17/copy-photoshop-layers#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=196</wfw:commentRss>
		</item>
				<item>
			<title>MyPhoneExplorer Android Auto Sync via Windows Task Manager</title>
			<link>http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync</link>
			<pubDate>Sun, 08 Jan 2012 15:53:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">News</category>
<category domain="alt">Applications</category>			<guid isPermaLink="false">195@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;I think that title gets a +5 on the geek scale &lt;img src=&quot;http://www.davidmillington.net/news/rsc/smilies/icon_razz.gif&quot; title=&quot;&amp;amp;amp;#58;&amp;amp;amp;#112;&quot; alt=&quot;&amp;amp;amp;#58;&amp;amp;amp;#112;&quot; class=&quot;middle&quot; width=&quot;15&quot; height=&quot;15&quot; /&gt;  So, I&#039;ve tried to do this before with my old HTC HD2 and had mixed results.  The problem I had back then was that MyPhoneExplorer would get launched when &lt;em&gt;any&lt;/em&gt; USB device was connected, not just the phone.  As you can imagine that was a bit annoying.  Now I have a shiny new Samsung Galaxy Note I thought it was a good time to take another stab.&lt;/p&gt;

&lt;p&gt;What is the goal?  I use a free application called &lt;a href=&quot;http://www.fjsoft.at/en/&quot;&gt;MyPhoneExplorer (MPE)&lt;/a&gt; to sync Outlook 2010 x32 with my phone.  I sync my contacts, calendar, notes, tasks and custom directories.  It works really well but you have to connect the phone and then manually load MyPhoneExplorer.  That&#039;s means loading it from the start menu and then clicking the multi-sync option.  How much effort is that?!  Ok, not much but it&#039;s more than I can be bothered doing each time.  The goal is to get MPE to load automatically when the phone is connected, do an automatic multi-sync and then close MPE.  Took me like an hour to work it out and searching the depths of the interweb it seems nobody else on the planet has posted how to do this so I felt it would be a nice thing to share.&lt;/p&gt;
&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync#more195&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I think that title gets a +5 on the geek scale <img src="http://www.davidmillington.net/news/rsc/smilies/icon_razz.gif" title="&amp;amp;#58;&amp;amp;#112;" alt="&amp;amp;#58;&amp;amp;#112;" class="middle" width="15" height="15" />  So, I've tried to do this before with my old HTC HD2 and had mixed results.  The problem I had back then was that MyPhoneExplorer would get launched when <em>any</em> USB device was connected, not just the phone.  As you can imagine that was a bit annoying.  Now I have a shiny new Samsung Galaxy Note I thought it was a good time to take another stab.</p>

<p>What is the goal?  I use a free application called <a href="http://www.fjsoft.at/en/">MyPhoneExplorer (MPE)</a> to sync Outlook 2010 x32 with my phone.  I sync my contacts, calendar, notes, tasks and custom directories.  It works really well but you have to connect the phone and then manually load MyPhoneExplorer.  That's means loading it from the start menu and then clicking the multi-sync option.  How much effort is that?!  Ok, not much but it's more than I can be bothered doing each time.  The goal is to get MPE to load automatically when the phone is connected, do an automatic multi-sync and then close MPE.  Took me like an hour to work it out and searching the depths of the interweb it seems nobody else on the planet has posted how to do this so I felt it would be a nice thing to share.</p>
<a href="http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync#more195">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2012/01/08/myphoneexplorer-android-auto-sync#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=195</wfw:commentRss>
		</item>
				<item>
			<title>UK Residential Sound Laws</title>
			<link>http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws</link>
			<pubDate>Thu, 29 Sep 2011 11:26:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">News</category>
<category domain="alt">Events</category>			<guid isPermaLink="false">194@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;Who wants to know what the legal UK residential sound levels are?  There are none!  I know crazy right.  To make things even more fun, the council don&#039;t even have to come to your house or your neighbours.  They entirely base their decision on what the other person says and any &quot;witnesses&quot; they can scrounge up.  Don&#039;t be mistaken into thinking the councils ASB Action Team are there to mediate because they are not.  They just want to shut you up and close the case as soon as possible.  There is a common misconception that the council must send someone out with a sound measuring device, sit in your neighbours place and detect the level you are producing.  That is a myth.  As I said, they base their decision solely on the word of your neighbours and their friends.  How do I know all this?  Well I&#039;m on the receiving end of a noise nuisance complaint.&lt;/p&gt;

&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws#more194&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Who wants to know what the legal UK residential sound levels are?  There are none!  I know crazy right.  To make things even more fun, the council don't even have to come to your house or your neighbours.  They entirely base their decision on what the other person says and any "witnesses" they can scrounge up.  Don't be mistaken into thinking the councils ASB Action Team are there to mediate because they are not.  They just want to shut you up and close the case as soon as possible.  There is a common misconception that the council must send someone out with a sound measuring device, sit in your neighbours place and detect the level you are producing.  That is a myth.  As I said, they base their decision solely on the word of your neighbours and their friends.  How do I know all this?  Well I'm on the receiving end of a noise nuisance complaint.</p>

<a href="http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws#more194">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/09/29/uk-residential-sound-laws#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=194</wfw:commentRss>
		</item>
				<item>
			<title>Outlook 2010 New Account Old PST Data File</title>
			<link>http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst</link>
			<pubDate>Fri, 26 Aug 2011 11:26:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">News</category>
<category domain="alt">Applications</category>			<guid isPermaLink="false">191@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;This has seriously had me screaming long streams of swear words but I finally sussed it out.  What was I trying to do?  Well I recently installed Windows 7 and therefore did a fresh install of Outlook 2010 as well.  I had saved my old PST file so now I had just done &quot;&lt;em&gt;File-&gt;Account Settings-&gt;Data Files&lt;/em&gt;&quot; and then added it there.  It seemed ok but then I started getting phone calls from people asking why I hadn&#039;t replied to their emails.  Turns out I was a doofus and thought that my PST file would also hold the account settings.  Wrong!&lt;/p&gt;

&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst#more191&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>This has seriously had me screaming long streams of swear words but I finally sussed it out.  What was I trying to do?  Well I recently installed Windows 7 and therefore did a fresh install of Outlook 2010 as well.  I had saved my old PST file so now I had just done "<em>File->Account Settings->Data Files</em>" and then added it there.  It seemed ok but then I started getting phone calls from people asking why I hadn't replied to their emails.  Turns out I was a doofus and thought that my PST file would also hold the account settings.  Wrong!</p>

<a href="http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst#more191">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/08/26/outlook-2010-new-account-old-pst#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=191</wfw:commentRss>
		</item>
				<item>
			<title>Hide Favorites Folders In Outlook 2010</title>
			<link>http://www.davidmillington.net/news/index.php/2011/08/24/hide-favorites-folders-in-outlook</link>
			<pubDate>Wed, 24 Aug 2011 16:24:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="alt">News</category>
<category domain="main">Applications</category>			<guid isPermaLink="false">190@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;After doing a fresh install of Outlook 2010 I noticed an area above my email accounts titled Favorites.  I don&#039;t use this, I don&#039;t plan on using this and it takes up about 2cm of vertical space which is much needed with all my email accounts.  It&#039;s easy to get rid of but you have to know where to look.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Expand the top ribbon bar if it is not already open and choose the &quot;View&quot; tab.&lt;/li&gt;
&lt;li&gt;Click on the &quot;Navigation Pane&quot; option and then choose the &quot;Favorites&quot; item.&lt;/li&gt;
&lt;li&gt;That&#039;s it.  That menu option acts as a toggle to turn it on and off.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See, I said it was easy &lt;img src=&quot;http://www.davidmillington.net/news/rsc/smilies/icon_mrgreen.gif&quot; title=&quot;&amp;amp;amp;#58;&amp;amp;amp;#62;&amp;amp;amp;#62;&quot; alt=&quot;&amp;amp;amp;#58;&amp;amp;amp;#62;&amp;amp;amp;#62;&quot; class=&quot;middle&quot; width=&quot;15&quot; height=&quot;15&quot; /&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/08/24/hide-favorites-folders-in-outlook&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>After doing a fresh install of Outlook 2010 I noticed an area above my email accounts titled Favorites.  I don't use this, I don't plan on using this and it takes up about 2cm of vertical space which is much needed with all my email accounts.  It's easy to get rid of but you have to know where to look.</p>
<ul>
<li>Expand the top ribbon bar if it is not already open and choose the "View" tab.</li>
<li>Click on the "Navigation Pane" option and then choose the "Favorites" item.</li>
<li>That's it.  That menu option acts as a toggle to turn it on and off.</li>
</ul>
<p>See, I said it was easy <img src="http://www.davidmillington.net/news/rsc/smilies/icon_mrgreen.gif" title="&amp;amp;#58;&amp;amp;#62;&amp;amp;#62;" alt="&amp;amp;#58;&amp;amp;#62;&amp;amp;#62;" class="middle" width="15" height="15" /></p><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/08/24/hide-favorites-folders-in-outlook">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/08/24/hide-favorites-folders-in-outlook#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=190</wfw:commentRss>
		</item>
				<item>
			<title>I Bought An Acer HN274H 27" 3D Monitor!</title>
			<link>http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h</link>
			<pubDate>Sun, 17 Jul 2011 00:58:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="alt">News</category>
<category domain="main">Reviews</category>			<guid isPermaLink="false">189@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;I only jumped on the dual monitor bandwagon a few months ago but now I see how hard it is to go back to a single display.  I decided that the next &quot;new&quot; thing to try out was 3D and I also wanted a better monitor than my old 24&quot; Samsung Syncmaster 245B.  The problem was that I couldn&#039;t find a monitor with its 1920x1200 resolution at the same size and with 3D.  Then out of the blue I stumbled across the &lt;a href=&quot;http://www.acer.co.uk/ac/en/GB/content/model/ET.HH4HE.001&quot;&gt;Acer HN274H 27&quot; 3D 120Hz LCD Monitor&lt;/a&gt;.  There are lots of reviews about it but there are lots of things that are not covered by most people.  This is my first hand review as someone that has used it for a week on a daily basis for work and gaming.&lt;/p&gt;

&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h#more189&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I only jumped on the dual monitor bandwagon a few months ago but now I see how hard it is to go back to a single display.  I decided that the next "new" thing to try out was 3D and I also wanted a better monitor than my old 24" Samsung Syncmaster 245B.  The problem was that I couldn't find a monitor with its 1920x1200 resolution at the same size and with 3D.  Then out of the blue I stumbled across the <a href="http://www.acer.co.uk/ac/en/GB/content/model/ET.HH4HE.001">Acer HN274H 27" 3D 120Hz LCD Monitor</a>.  There are lots of reviews about it but there are lots of things that are not covered by most people.  This is my first hand review as someone that has used it for a week on a daily basis for work and gaming.</p>

<a href="http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h#more189">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/07/17/i-bought-an-acer-hn274h#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=189</wfw:commentRss>
		</item>
				<item>
			<title>ActionScript 3 Windows Filename Regexp</title>
			<link>http://www.davidmillington.net/news/index.php/2011/06/11/actionscript-3-windows-filename-regexp</link>
			<pubDate>Sat, 11 Jun 2011 12:09:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">Flash</category>
<category domain="alt">Applications</category>			<guid isPermaLink="false">188@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;The project I&#039;m working on today allows users to type their own filenames.  The actual file extension is added afterwards by my system.  I needed to check that the filename itself is valid for Windows so I came up with this:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;var file_name:String = &quot; #DOG!&quot;&amp;#163;$%^&amp;amp;*()_+{}~@:?&gt;&amp;lt;|&amp;#172;\`-=[]#&#039;;/.,&quot;;&lt;/p&gt;

&lt;p&gt;// Remove chars not allowed in Windows filename \ / : * ? &quot; &amp;lt; &gt; |&lt;br /&gt;
file_name = file_name.replace(/[~\\\/:\*\?&quot;&amp;lt;&gt;\|]/g, &quot;&quot;);&lt;/p&gt;

&lt;p&gt;// Trim leading and trailing whitespace.&lt;br /&gt;
file_name = file_name.replace(/^\s+|\s+$/gs, &quot;&quot;);&lt;/p&gt;

&lt;p&gt;// traces #DOG!&amp;#163;$%^&amp;amp;()_+{}@&amp;#172;`-=[]#&#039;;.,&lt;br /&gt;
trace(file_name);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Although it looks like crap that is still a valid file name.  So then my system automatically appends the custom file extension that I&#039;m using.  I&#039;m clearly not a regexp wizard but the above seems to work for me.  Could probably combine the two but I&#039;m not fussed for now.  I got the trim regexp from &lt;a href=&quot;http://jeffchannell.com/ActionScript-3/as3-trim.html&quot;&gt;the comments in this post&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Another option would of been to use the TextFields restrict property which will prevent them from typing or pasting in any of the illegal characters.  In hindsite I&#039;ll probably switch to using that as it will be less confusing for the user:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;this.my_textfield.restrict = &quot;^\\\\/:*?\&quot;&amp;lt;&gt;|&quot;;&lt;/em&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/06/11/actionscript-3-windows-filename-regexp&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>The project I'm working on today allows users to type their own filenames.  The actual file extension is added afterwards by my system.  I needed to check that the filename itself is valid for Windows so I came up with this:</p>

<blockquote><p>var file_name:String = " #DOG!"&#163;$%^&amp;*()_+{}~@:?>&lt;|&#172;\`-=[]#';/.,";</p>

<p>// Remove chars not allowed in Windows filename \ / : * ? " &lt; > |<br />
file_name = file_name.replace(/[~\\\/:\*\?"&lt;>\|]/g, "");</p>

<p>// Trim leading and trailing whitespace.<br />
file_name = file_name.replace(/^\s+|\s+$/gs, "");</p>

<p>// traces #DOG!&#163;$%^&amp;()_+{}@&#172;`-=[]#';.,<br />
trace(file_name);</p></blockquote>
<p>Although it looks like crap that is still a valid file name.  So then my system automatically appends the custom file extension that I'm using.  I'm clearly not a regexp wizard but the above seems to work for me.  Could probably combine the two but I'm not fussed for now.  I got the trim regexp from <a href="http://jeffchannell.com/ActionScript-3/as3-trim.html">the comments in this post</a>.</p>

<p>Another option would of been to use the TextFields restrict property which will prevent them from typing or pasting in any of the illegal characters.  In hindsite I'll probably switch to using that as it will be less confusing for the user:</p>

<p><em>this.my_textfield.restrict = "^\\\\/:*?\"&lt;>|";</em></p><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/06/11/actionscript-3-windows-filename-regexp">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/06/11/actionscript-3-windows-filename-regexp#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=188</wfw:commentRss>
		</item>
				<item>
			<title>Music To Your Ears - All My Phone Ringtones</title>
			<link>http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones</link>
			<pubDate>Sat, 30 Apr 2011 19:56:00 +0000</pubDate>			<dc:creator>tann san</dc:creator>
			<category domain="main">News</category>
<category domain="alt">Applications</category>			<guid isPermaLink="false">187@http://www.davidmillington.net/news/</guid>
						<description>&lt;p&gt;I get a kick from making ringtones and notification sounds and my friends seem to enjoy them as well.  I had an accident and deleted a bunch of them a few weeks ago and since then I&#039;ve played with the idea of putting them all online so that I can have a live backup of them all.  I&#039;m hoping you will enjoy them as much as I do.  I&#039;ll keep updating the post as I make new ones.&lt;/p&gt;

&lt;p&gt;I should point out that I haven&#039;t made any of these from scratch, some are presented in their entirety whilst others I&#039;ve chopped down to make more suitable for their new purpose.  If anyone has a problem with me sharing them then let me know and I can take down the offending tune.&lt;/p&gt;

&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones#more187&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://www.davidmillington.net/&quot;&gt;davidmillington.net&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I get a kick from making ringtones and notification sounds and my friends seem to enjoy them as well.  I had an accident and deleted a bunch of them a few weeks ago and since then I've played with the idea of putting them all online so that I can have a live backup of them all.  I'm hoping you will enjoy them as much as I do.  I'll keep updating the post as I make new ones.</p>

<p>I should point out that I haven't made any of these from scratch, some are presented in their entirety whilst others I've chopped down to make more suitable for their new purpose.  If anyone has a problem with me sharing them then let me know and I can take down the offending tune.</p>

<a href="http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones#more187">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones">Original post</a> blogged on <a href="http://www.davidmillington.net/">davidmillington.net</a>.</small></p></div>]]></content:encoded>
								<comments>http://www.davidmillington.net/news/index.php/2011/04/30/all-my-phone-ringtones#comments</comments>
			<wfw:commentRss>http://www.davidmillington.net/news/index.php?tempskin=_rss2&#38;disp=comments&#38;p=187</wfw:commentRss>
		</item>
			</channel>
</rss>
