<?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>Luke Gill - Web Design Belfast, Northern Ireland&#187; Luke Gill &#8211; Web Design Belfast, Northern Ireland</title>
	<atom:link href="http://www.lukegill.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukegill.com</link>
	<description>web design, flash development &#38; digital marketing</description>
	<lastBuildDate>Thu, 27 Aug 2009 14:56:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how to use GMail for mailto: links</title>
		<link>http://www.lukegill.com/blog/how-to-use-gmail-for-mailto-links/</link>
		<comments>http://www.lukegill.com/blog/how-to-use-gmail-for-mailto-links/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 13:10:14 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=115</guid>
		<description><![CDATA[This is simple, no more default outlook wizard!
Lets get started:
1. Open up Firefox &#38; load your GMail
2. Paste the following code into your address bar:
javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/mail/?extsrc=mailto&#38;url=%s&#8221;,&#8221;GMail&#8221;)
If you use Google Apps for your own domain, then you need to use the following code and change &#8220;yoursite.com&#8221; to the name of your domain.
javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/a/example.com/mail/?extsrc=mailto&#38;url=%s&#8221;,&#8221;GMail&#8221;)
4. Click the Add Application button, [...]]]></description>
			<content:encoded><![CDATA[<p>This is simple, no more default outlook wizard!<span id="more-115"></span></p>
<p><span style="text-decoration: underline;"><strong>Lets get started:</strong></span></p>
<p>1. Open up Firefox &amp; load your GMail</p>
<p>2. Paste the following code into your address bar:</p>
<p style="padding-left: 30px;"><em>javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/mail/?extsrc=mailto&amp;url=%s&#8221;,&#8221;GMail&#8221;)</em></p>
<p>If you use Google Apps for your own domain, then you need to use the following code and change &#8220;yoursite.com&#8221; to the name of your domain.</p>
<p style="padding-left: 30px;"><em>javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/a/<strong>example.com</strong>/mail/?extsrc=mailto&amp;url=%s&#8221;,&#8221;GMail&#8221;)</em></p>
<p>4. Click the Add Application button, which pops up at the top of the page.</p>
<p>5. Done! Now click a mailto: link and you will be pleasantly surprised!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/how-to-use-gmail-for-mailto-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Email Validation</title>
		<link>http://www.lukegill.com/blog/as3-email-validation/</link>
		<comments>http://www.lukegill.com/blog/as3-email-validation/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 10:27:11 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=85</guid>
		<description><![CDATA[Here is one of the easiest ways to validate an email in AS3.
When your designing a flash application that has forms&#8230;it is essential that you validate your emails one way or another. If you choose to do all your validation on the server-side and return the error value directly into flash&#8230;then thats one way to [...]]]></description>
			<content:encoded><![CDATA[<p>Here is one of the easiest ways to validate an email in AS3.<span id="more-85"></span></p>
<p>When your designing a flash application that has forms&#8230;it is <strong>essential</strong> that you validate your emails one way or another. If you choose to do all your validation on the server-side and return the error value directly into flash&#8230;then thats one way to do it.</p>
<p>Personally, i would always put my form through a number of simple checks before sending the data to the server.<br />
I generally use PHP to handle form data, so from now on i will refer to the server-side as PHP.</p>
<p>Here is a quick and easy way to validate an email:</p>
<p>Lets assume your using a &#8217;submit&#8217; button to submit your form data to PHP. The following code would be familiar:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">buttonSubmit.<span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
buttonSubmit.<span style="color: #004993;">useHandCursor</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
buttonSubmit.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, submitForm<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> submitForm<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Okay, so whats the code you need to actually validate the structure of an email? well its very simple&#8230;1 line of regular expression.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #339966; font-weight: bold;">function</span> isValidEmail<span style="color: #000000;">&#40;</span>email<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> emailExpression<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">RegExp</span> = <span style="color: #000000; font-weight: bold;">/^</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">+</span>@\w<span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">+</span>\.<span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span>$<span style="color: #000000; font-weight: bold;">/</span>i;
    <span style="color: #0033ff; font-weight: bold;">return</span> emailExpression.<span style="color: #004993;">test</span><span style="color: #000000;">&#40;</span>email<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>As you can see, this function takes an email address &#8217;string&#8217; and checks that the structure of the string is recognised as an email address. Whether or not the email address exists..is a server-side matter.</p>
<p>So how do you use it? it&#8217;s very easy, and here is the code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">buttonSubmit.<span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
buttonSubmit.<span style="color: #004993;">useHandCursor</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
buttonSubmit.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, submitForm<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> submitForm<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight: bold;">!</span>isValidEmail<span style="color: #000000;">&#40;</span>yourTextFieldName.<span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #009900;">//email address is not valid</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #0033ff; font-weight: bold;">else</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #009900;">//email address is valid</span>
        <span style="color: #009900;">//form submit code goes here</span>
        <span style="color: #009900;">//</span>
        <span style="color: #009900;">//</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> isValidEmail<span style="color: #000000;">&#40;</span>email<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> emailExpression<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">RegExp</span> = <span style="color: #000000; font-weight: bold;">/^</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">+</span>@\w<span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">+</span>\.<span style="color: #000000;">&#91;</span>\w.<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>a<span style="color: #000000; font-weight: bold;">-</span>z<span style="color: #000000;">&#93;</span>$<span style="color: #000000; font-weight: bold;">/</span>i;
    <span style="color: #0033ff; font-weight: bold;">return</span> emailExpression.<span style="color: #004993;">test</span><span style="color: #000000;">&#40;</span>email<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And thats it&#8230;too easy. All you would need to add is a text box which display some sort of error message, telling the use the email is not valid.</p>
<p>I have included the source file which includes an error prompt. Enjoy!</p>
<p><a rel="attachment wp-att-92" href="http://www.lukegill.com/blog/as3-email-validation/attachment/as3-email-validate/">AS3-Email-Validate.fla</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/as3-email-validation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Youtube video in AS3 FLVPlayback</title>
		<link>http://www.lukegill.com/blog/youtube-video-in-as3-flvplayback/</link>
		<comments>http://www.lukegill.com/blog/youtube-video-in-as3-flvplayback/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 19:37:22 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=45</guid>
		<description><![CDATA[Get YouTube URL support for the flash FLVPlayback component&#8230;
This tutorial was a life saver. Basically, i needed to play a youtube video (my own) using the FLVPlayback component, but without downloading the source .flv and playing it locally.
Although this can be achieved using actionscript alone, YouTube has recently changed the way they serve .flv&#8217;s to [...]]]></description>
			<content:encoded><![CDATA[<p>Get YouTube URL support for the flash FLVPlayback component&#8230;<span id="more-45"></span><br />
This tutorial was a life saver. Basically, i needed to play a youtube video (my own) using the FLVPlayback component, but without downloading the source .flv and playing it locally.</p>
<p>Although this can be achieved using actionscript alone, YouTube has recently changed the way they serve .flv&#8217;s to other domains. The traditional way (get-video.php) doesn&#8217;t work through flash applications, so most of the tutorials out there are out of date and don&#8217;t work.</p>
<p>This tutorial is working, and saves a lot of hassle. Definitely check it out.</p>
<p><a title="Read Tutorial" href="http://dennisjaamann.com/blog/?p=70" target="_blank">Visit Tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/youtube-video-in-as3-flvplayback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>featured on cssmania.com</title>
		<link>http://www.lukegill.com/blog/featured-on-cssmaniacom/</link>
		<comments>http://www.lukegill.com/blog/featured-on-cssmaniacom/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 18:59:48 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=49</guid>
		<description><![CDATA[lukegill.com was featured on cssmania today&#8230;
]]></description>
			<content:encoded><![CDATA[<p>lukegill.com was featured on <a title="cssmania.com" href="http://www.cssmania.com" target="_blank">cssmania </a>today&#8230;<span id="more-49"></span><a href="http://cssmania.com/galleries/2009/06/05/luke-gill.php"><img class="alignnone size-full wp-image-50" title="cssmania lukegill.com" src="http://www.lukegill.com/wp-content/uploads/2009/06/cssmania1.jpg" alt="cssmania lukegill.com" width="565" height="491" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/featured-on-cssmaniacom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash showcase, coming soon&#8230;</title>
		<link>http://www.lukegill.com/blog/flash-showcase-coming-soon/</link>
		<comments>http://www.lukegill.com/blog/flash-showcase-coming-soon/#comments</comments>
		<pubDate>Sun, 31 May 2009 12:31:26 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=31</guid>
		<description><![CDATA[I&#8217;m working on a flash showcase section of the site. Online soon&#8230;I&#8217;m still working out the best way to go around this, but it should be online soon.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a flash showcase section of the site. Online soon&#8230;<span id="more-31"></span>I&#8217;m still working out the best way to go around this, but it should be online soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/flash-showcase-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New site, new technology&#8230;</title>
		<link>http://www.lukegill.com/blog/new-site-new-technology/</link>
		<comments>http://www.lukegill.com/blog/new-site-new-technology/#comments</comments>
		<pubDate>Sun, 31 May 2009 12:23:31 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=24</guid>
		<description><![CDATA[Since working at Bluecube Interactive, i&#8217;ve learnt a bunch of new stuff.In the past, I&#8217;ve been a strong user of tables and spacers, and I actually found them very simple and effective. It&#8217;s amazing how much your opinion changes when you learn CSS. Now I can&#8217;t stand to use tables anywhere, it&#8217;s just so much [...]]]></description>
			<content:encoded><![CDATA[<p>Since working at <a title="Bluecube Interactive" href="http://www.bluecubeinteractive.com" target="_blank">Bluecube Interactive</a>, i&#8217;ve learnt a bunch of new stuff.<span id="more-24"></span>In the past, I&#8217;ve been a strong user of tables and spacers, and I actually found them very simple and effective. It&#8217;s amazing how much your opinion changes when you learn CSS. Now I can&#8217;t stand to use tables anywhere, it&#8217;s just so much easier using stylesheets. CSS has given me a whole new love for the web, and i can&#8217;t believe it&#8217;s taken me this long to realise.</p>
<p>Since my passion has always been with Flash, I&#8217;ve been trying to get-to-grips with some of the new (and not so new) technology. <a title="Papervision 3D" href="http://www.papervision3d.org/" target="_blank">Papervision 3D</a> is all over the web just now, and it was impossible for me to ignore it (and why would i want to do that?). Since working at <a title="Bluecube Interactive" href="http://www.bluecubeinteractive.com" target="_blank">Bluecube Interactive</a>, a few projects have come up where Papervision would be perfect for. <a title="BT Experiment" href="http://www.btexperiment.com" target="_blank">BT Experiment</a> has been one of the biggest projects i&#8217;ve had, and i&#8217;ve learnt a great deal from it. I&#8217;ve learnt some good things about Papervision, and also a lot of not so good things. You definitely understand that Papervision is still in Beta stages once you start using it.</p>
<p>Lastly, the site is now using <a title="Wordpress" href="http://www.wordpress.org" target="_blank">Wordpress</a>. I&#8217;ve been putting it off, because i&#8217;ve always had reservations about using a CMS like Wordpress for a simple portfolio site. However, Wordpress is huge and it&#8217;s practically becoming an industry standard that you use Wordpress, or at least know how to set it up. It&#8217;s been another learning curve, but wordpress really is so easy. Now i just need to find out which plug-ins will actually help me out, and which ones will just slow me down. Whilst writing this, i&#8217;m already hoping that when i search for an automatic link creator for posts&#8230;something will come up, and i&#8217;m sure it will.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/new-site-new-technology/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>We&#8217;re going through changes&#8230;</title>
		<link>http://www.lukegill.com/blog/were-going-through-changes/</link>
		<comments>http://www.lukegill.com/blog/were-going-through-changes/#comments</comments>
		<pubDate>Sun, 31 May 2009 12:00:08 +0000</pubDate>
		<dc:creator>lukegill</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.lukegill.com/?p=22</guid>
		<description><![CDATA[At last, things are looking different around here&#8230;It&#8217;s been a while since the last redesign, and it&#8217;s definitely taken longer than I thought.
I actually went through a couple of designs before settling on this one. It&#8217;s definitely the simplest design I&#8217;ve created, but it&#8217;s definitely the trend that I&#8217;m into at the moment.
So! gone with [...]]]></description>
			<content:encoded><![CDATA[<p>At last, things are looking different around here&#8230;<span id="more-22"></span>It&#8217;s been a while since the last redesign, and it&#8217;s definitely taken longer than I thought.<br />
I actually went through a couple of designs before settling on this one. It&#8217;s definitely the simplest design I&#8217;ve created, but it&#8217;s definitely the trend that I&#8217;m into at the moment.</p>
<p>So! gone with the graphics! and here&#8217;s to simple design&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukegill.com/blog/were-going-through-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
