<?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>WhatwasIthinking.co.uk &#187; travel blog</title>
	<atom:link href="http://www.whatwasithinking.co.uk/tag/travel-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whatwasithinking.co.uk</link>
	<description>A Flash Development, Information Architecture, SEO &#38; Web Design Blog</description>
	<lastBuildDate>Tue, 06 Apr 2010 09:38:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The trouble with IE6 &#8211; why you still may have to support it (and debunking some myths)</title>
		<link>http://www.whatwasithinking.co.uk/2009/07/26/the-trouble-with-ie6-why-you-still-may-have-to-support-it-and-debunking-some-myths/</link>
		<comments>http://www.whatwasithinking.co.uk/2009/07/26/the-trouble-with-ie6-why-you-still-may-have-to-support-it-and-debunking-some-myths/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 08:43:10 +0000</pubDate>
		<dc:creator>Alexander Rehm</dc:creator>
				<category><![CDATA[Usability & Accessibility]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[best-practice]]></category>
		<category><![CDATA[considerations]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[travel blog]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Web design & usability]]></category>

		<guid isPermaLink="false">http://www.whatwasithinking.co.uk/?p=531</guid>
		<description><![CDATA[Over the last week or so, the discussion &#8220;should we continue to support IE6&#8243; has been gaining more and more momentum. Digg, Mashable, Techcrunch and other websites ran features about why IE6 should be given the boot, websites like facebook and youtube are starting to phase out the browser, hinting users to upgrade their browser. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-532" title="the trouble with supporting IE6 - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/the-trouble-with-supporting-IE6-whatwasithinking.jpg" alt="the trouble with supporting IE6 - whatwasithinking.co.uk" width="260" height="125" />Over the last week or so, the discussion &#8220;should we continue to support IE6&#8243; has been gaining more and more momentum. Digg, Mashable, Techcrunch and other websites ran features about why IE6 should be given the boot, websites like facebook and youtube are starting to phase out the browser, hinting users to upgrade their browser.</p>
<p>This sparked a long and heated debate in a number of web design agencies and clients I am working with (or have worked with / for), whether it would be worth just dropping the support for Internet Explorer 6 and ask users to upgrade their browsers so that they can enjoy the website to the fullest.</p>
<p>Coming from a usability, accessibility, SEO and web dev background, I thought it might be a good idea writing why I would recommend supporting (or not supporting) IE6 in the industry I am working for. <span id="more-531"></span></p>
<h3>Looking at our industry &#8211; what made IE6 stay</h3>
<p>With the release of Windows XP in <strong>October 2001</strong>, users were greeted to the new – bundled – version of Internet Explorer 6. Companies, schools and universities planning on buying new hardware tended to use resellers such as Dell to buy a number of same-spec machines at a bulk discount – and with all machines either shipping with XP or Win2000, the reign of IE6 was established.</p>
<div id="attachment_541" class="wp-caption alignright" style="width: 310px"><img class="size-full wp-image-541" title="ie6 based stock software - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/ie6-based-accounting-software-whatwasithinking.jpg" alt="Some stock-checking and invoicing software would only work with IE6" width="300" height="225" /><p class="wp-caption-text">Some stock-checking and invoicing software would only work with IE6</p></div>
<p>System admins were able to roll out updates and software easily, as all machines were virtually the same, and keeping control of networks became relatively easy. Additionally, intranet software was bought or developed based on IE6, since every machine came with it this made development and testing a lot quicker and easier.</p>
<p>In <strong>November 2005</strong>, FireFox 1.5 became the first real free browser on the market to rival IE6 for its ease of use, and coupled with the ability to extend the browser’s capabilities through extensions it became the browser of choice – if you had the ability to choose. You see, the browser (just like 95% of all applications) needed to be installed. This wasn’t a problem on your own personal computer, but when trying to do this in an office environment (or any institution) then things were a bit more difficult: most users were not given administration rights to their machines to prevent abuse or installing malicious software. Most software requests had to go through a number of channels, from procurement (if licensing was involved) to IT (to see how much work was involved and how much time would be required per machine) to head of department (to sign the request off and add additional reasons for the request) to someone a lot higher up to ultimately sign the request off. A simple “Can I have software XYZ” could easily take months to get it approved.</p>
<div id="attachment_543" class="wp-caption alignright" style="width: 210px"><img class="size-full wp-image-543" title="internet explorer 7 was released in october 2006 - Whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/internet-explorer-7-was-released-in-october-2006.jpg" alt="Internet Explorer 7 was released on 18 October 2006" width="200" height="87" /><p class="wp-caption-text">Internet Explorer 7 was released on 18 October 2006</p></div>
<p>With the arrival of Windows Vista and Server 2008 in<strong> October 2006</strong>, Microsoft released Internet Explorer 7, 5 years after the release of IE6. At that time, IE7 was only available for Vista and Server 2008 machines, and it was not until <strong>October 2007</strong> that IE7 was officially available for XP machines. Companies were once again given the option to roll out IE7 to every machine under their care, however this didn’t happen: rolling out IE7 to all machines in bigger companies or institutions would not only cost a lot of time and &#8211; more importantly – money (system admin time, potential upgrade costs, etc), but the software used for business purposes (such as stock management software, accounting or counter software) was built on or running on IE6, most of the time exclusively, and paying for this software to be upgraded was a very expensive option (and sometimes the company that wrote the software did not even exist anymore).</p>
<p>As such, IE6 came to stay with us, and it will probably do so for a long time to come unless Microsoft was to offer free upgrades to companies and allow backwards compatibility of IE6, if only at least for the software and not for the browser use. And I somehow cannot see that happen.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Affecting your target audience</h3>
<p>Now this was the general “industry” as we have it out there this year. What needs to be considered is how much of that sector fits into your target audience. Every website offers different bits of information, services or products, and each website has a different target audience with different needs or requirements and expectations of the website (if you read my article on information architecture and user testing you will be aware of different user scenarios to test a website with).</p>
<p>The main target audience I am dealing with is the travel and tourism industry. Our target traffic (based on a survey conducted in Jan / Feb 2008 by three of my clients) is coming from:</p>
<ul>
<li> Users at work, looking at holiday packages and destinations at work during their breaks &#8211; ~ 65%</li>
<li> Users at home, either planning with the family or reading up on what they found at work &#8211; ~35%</li>
</ul>
<p>Just over two thirds of traffic is coming from people using company / education networks. Depending on your target audience it might be a good idea to look at where your main traffic is coming from to paint your own picture for your market.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>IE6 today &#8211; the stats</h3>
<p>Let’s have a look at Google Analytics. These are the June / July stats of a holiday cottage provider based in the UK (we are looking at a slow month):</p>
<div id="attachment_547" class="wp-caption alignnone" style="width: 590px"><img class="size-full wp-image-547" title="google analytics screenshot 1 - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/google-analytics-screenshot-1.jpg" alt="web stats from a holiday cottage provider" width="580" height="302" /><p class="wp-caption-text">Web stats from a holiday cottage provider. IE accounts for 71% of the traffic</p></div>
<p>Interesting picture, almost three quarters of all traffic is coming from Internet Explorer.</p>
<p>Let&#8217;s  break it down:</p>
<div id="attachment_548" class="wp-caption alignnone" style="width: 590px"><img class="size-full wp-image-548" title="google analytics screenshot 2 - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/google-analytics-screenshot-2.jpg" alt="Caption" width="580" height="302" /><p class="wp-caption-text">22% of IE-using visitors are using IE6. Interstingly, a very small number are still using IE5.x</p></div>
<p>About <strong>16% of <span style="text-decoration: underline;">all</span> visitors are using IE6</strong> to browse the website, read more information about the product or destination and make a booking. A fifth of all bookings are made using IE6 &#8211; very interesting fact to keep in mind.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Debunking some myths about IE6</h3>
<p>Now having looked at the stats and a brief history, let&#8217;s have a look at some of the most commonly used phrases in the last couple of weeks from my industry:</p>
<h4>Myth 1 &#8211; No one uses ie6 any more</h4>
<p>Looking at the stats above, this simply isn&#8217;t true. The website usage of people using IE6 is still significant enough to not ignore it. Again, this depends entirely on your industry, but if you are working in travel / tourism / holiday properties then you really ought to keep that in mind.</p>
<h4>Myth 2 &#8211; Developing for IE6 is difficult</h4>
<p><img class="alignright size-full wp-image-553" title="using IE6 specific hacks - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/using-IE6-specific-hacks.jpg" alt="using IE6 specific hacks - whatwasithinking.co.uk" width="200" height="78" />That entirely depends on what you are planning to do. I have yet to encounter a problem that I could not overcome for IE6. Some websites (such as <a title="Visit Peak District" href="http://www.visitpeakdistrict.com">www.visitpeakdistrict.com</a> for example) have been built by colleagues and myself with no IE stylesheet at all! There are plenty of resources out there to aid you (one of my personal favourite ones being the <a title="The Definitive guide to taming the IE6 beast" href="http://sixrevisions.com/web-development/definitive-guide-to-taming-the-ie6-beast/">definitive guide to taming IE6</a> by Jeff Starr) with developing for IE6, from flickering backgrounds to missing text (usually it is just a width or height-issue anyway), and jQuery and other plugins still work reasonably well for IE6 and degrade gracefully if not.</p>
<h4>Myth 3 &#8211; IE6 is bad user experience</h4>
<p>Whoever said this clearly does not have a grasp of what &#8220;user experience&#8221; actually means. As a piece of software IE6 &#8220;works&#8221; (else it would not have passed QA at Microsoft), it allows for bookmarking, browsing, searching, information gathering and even levels for customisation, which I believe is delivering a pretty good user experience.</p>
<p>The user experience this person was talking about is not defined by the browser, it is defined by the experience the website has to offer! It comes back to the points above &#8211; if you cannot code properly for IE6 then it is you who is causing this user experience issue.</p>
<h4>Myth 4 &#8211; No one supports IE6</h4>
<p>Wrong. Many support IE6 still to this day, web developers, software companies, and even the most crucial web techniques such as jQuery or Flash support IE6 (hell, Flash doesn&#8217;t even support a 64bit plugin properly!).</p>
<h4>Myth 5 &#8211; it is easy to upgrade your browser</h4>
<p>Just because it is easy for you to upgrade doesn&#8217;t mean it is for everyone. Put yourself into the position of an office employee working for a big company. This comes back to the history of IE6 I mentioned earlier, upgrading a browser is difficult because:</p>
<ul>
<li>The computer you are using may have a very old operating system</li>
<li>You may not have administrator rights to do so</li>
<li>You may not be able to justify why you need to have a new browser, and approval may take a long time in a bigger company</li>
<li>You may not be able to justify the time and costs involved to upgrade all machines with a new browser, let alone a new operating system.</li>
<li>Software on your machine you are using for day-to-day work may heavily rely on IE6</li>
<li>You don&#8217;t know how to upgrade</li>
</ul>
<p><span style="color: #ffffff;">.</span></p>
<h3>A lesson in history &#8211; when things went wrong (a case study)</h3>
<div id="attachment_533" class="wp-caption alignright" style="width: 310px"><img class="size-full wp-image-533" title="you are using an outdated browser - whatwasithinking.co.uk" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2009/07/you-are-using-an-outdated-browser-whatwasithinking.jpg" alt="A client of mine used this warning once. The result - 81% drop in traffic" width="300" height="284" /><p class="wp-caption-text">A client of mine used this warning once. The result - over 2,000 complaings, 81% drop in traffic</p></div>
<p>About 2 years ago I was working with my team on a website for a relatively big UK travel company. Because the client wanted new functionality on certain product pages (interactive pricing grid and &#8220;add to basket facilities) they decided to make this available only to  certain newer browsers (against my company&#8217;s recommendation and to save development time), and set up an error message (see screenshot on the right) when visiting those new pages and asked us to monitor traffic in real-time for these pages and the whole of the website.</p>
<p>About 3h after putting these new pages (and this warning) up the CEO&#8217;s office rang to tell us that they received <strong>over 2,000 complaints</strong> about the new error message and had an<strong> over 80% drop in traffic</strong> and asked us to quickly take the new pages down and replace them with the old ones &#8211; and to plan in time to work on a cross-browser solution.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Looking ahead</h3>
<p>IE6 is sadly the only browser that will stay with us long after IE9 or maybe even IE10 has been released. Many companies cannot afford the time and money for purchasing new software licenses or changing operating systems because a lot is depending on their current set-up.</p>
<p>IE6 is a problem for many web developers, myself included, and many of us are spending hours, even days, making a website work properly across all browsers. What you need to think about is: who is your target audience, and what computer capabilities do they have? And are you willing to take the plunge and not support IE6 and lose X% in visits and potential custom?</p>
<p><strong>How is your industry affected? Are you still supporting IE6?</strong></p>
<p><span style="color: #ffffff;">.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whatwasithinking.co.uk/2009/07/26/the-trouble-with-ie6-why-you-still-may-have-to-support-it-and-debunking-some-myths/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>On Flash &#8211; map integration with Yahoo Maps + ActionScript (part 2)</title>
		<link>http://www.whatwasithinking.co.uk/2008/07/09/on-flash-map-integration-with-yahoo-maps-actionscript-part-2/</link>
		<comments>http://www.whatwasithinking.co.uk/2008/07/09/on-flash-map-integration-with-yahoo-maps-actionscript-part-2/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 21:42:10 +0000</pubDate>
		<dc:creator>Alexander Rehm</dc:creator>
				<category><![CDATA[Flash Development]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[functionality]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[mash-up]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rich media application]]></category>
		<category><![CDATA[travel blog]]></category>
		<category><![CDATA[travel journal]]></category>
		<category><![CDATA[Yahoo maps]]></category>

		<guid isPermaLink="false">http://www.whatwasithinking.co.uk/?p=66</guid>
		<description><![CDATA[If you followed my entry about Map integration with Yahoo Maps and ActionScript you will probably be wondering what I have to report about the progress. As you may remember, this mash-up is about offering a client a new spin on travel bogging: being able to log in to the client&#8217;s website from anywhere in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-67" title="On Flash - map integration with Yahoo Maps and ActionScript (part2)" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-00.jpg" alt="On Flash - map integration with Yahoo Maps and ActionScript (part2)" width="170" height="140" align="right" />If you followed my entry about <a title="On Flash - map integration with Yahoo Maps + ActionScript 2.0" href="http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/" target="_blank">Map integration with Yahoo Maps and ActionScript</a> you will probably be wondering what I have to report about the progress. As you may remember, this mash-up is about offering a client a new spin on travel bogging: being able to log in to the client&#8217;s website from anywhere in the world and give other users (and family and friends) the opportunity to see where you are going and what you are doing there.</p>
<p>Last time I wrote about this Yahoo / Flash mashup I connected the Yahoo map&#8217;s API through Flash and PHP to a MySQL database and was able to write / read from the entries. My next goals were to integrate a user-login, adding links, implementing moderation and a Flash image uploader script.<span id="more-66"></span><br />
<span style="color: #ffffff;">.</span></p>
<h3>Integrating a PHP uploader script</h3>
<p>A very important aspect for both users (and our clients) is to be able to &#8216;take part&#8217; and &#8216;be part&#8217; of shaping the user-generated content area of a site, to leave their mark. Naturally, images and content are the weapons of choice, as such the next step was to work on an image-uploader. The task:</p>
<blockquote><p>Develop an image uploader script through Flash that would allow users to upload an image from their desktop, store it online in a writeable folder on the server and reference to it from the SQL database and display the image for the relevant post for the relevant user.</p></blockquote>
<p><a href="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-001.jpg"  rel="lightbox[roadtrip]"><img class="alignright size-thumbnail wp-image-68" title="On Flash maps - image uploader gone wrong" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-001-150x150.jpg" alt="On Flash maps - image uploader gone wrong" width="150" height="99" align="right" /></a>This wasn&#8217;t such an easy task. I had a good look around how Flash tutorial websites I usually frequent handle image upload. After some working I managed to get the PHP side of things working &#8211; which also had its own issues to start with, it would not update file names properly (<em>see image to the right, click to enlarge</em>)! After some fiddling around I managed to get the php script to work, and if you like you can download it here:</p>
<blockquote><p>Please download the file here: <a href="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/fileupload.zip">fileupload.zip</a> (~800 bytes)</p></blockquote>
<p>What the script does is it defines the maximum file dimensions (180&#215;300 max in either direction) and uploads the file to a temporary directory (<em>/tempstore/</em>) before giving it a timestamp and name-change and putting it into the <em>/images/</em> directory.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Connecting PHP with Flash</h3>
<p>This was a bit (okay, a hell of a lot) more complicated: through the variables &#8216;<em>FileReference</em>&#8216; and &#8216;<em>browseListener</em>&#8216; and a couple of other event listeners I managed to tell Flash how to use the &#8220;Browse&#8230;&#8221; button and how to handle the uploaded image. At the moment the Flash file uploads the image to the database correctly, but it will break if the image does not have the correct size, so I need to work on getting the image-resizer to work. Once that works I&#8217;ll upload the source as well.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Sneak Peak for the image-uploader (snapshot of 9th July 2008)</h3>
<p>The main uploader:<br />
<img class="alignnone size-full wp-image-70" title="On Flash - map integration with Yahoo Maps + Actionscript - the uploader" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-01.jpg" alt="The uploader" width="600" height="440" /></p>
<p><span style="color: #ffffff;">.</span></p>
<p>The uploaded image and adding information:<br />
<img class="alignnone size-full wp-image-71" title="On Flash - map integration with Yahoo Maps + Actionscript - the uploaded image" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-02.jpg" alt="The uploaded image" width="600" height="441" /></p>
<p><span style="color: #ffffff;">.</span></p>
<p>&#8230;and the result:<br />
<img class="alignnone size-full wp-image-72" title="On Flash - map integration with Yahoo maps + Actionscript - the final result" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/07/on-flashmaps-03.jpg" alt="The final result...well, for now!" width="600" height="441" /></p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Conclusion and next steps</h3>
<p>Well, so far it is looking very promising with the image-uploader! Obviously we are still some way to go with it, but I think the project is starting to take shape! Integrating browse and upload functionality in Flash took some work, but thanks to ActionScript 2.0&#8242;s event listeners it worked out reasonably well and connected to the database. Obviously we are still taking about only one user at a time, so I would need to review the php code at a later date to also make sure there is a folder structure per user present, but that should not be too much of an issue. Watch out for the next entry on this mash-up, by then I will have the uploader finished and maybe add the ability to upload multiple images to show a slideshow, we will see!</p>
<p><span style="color: #ffffff;">.</span></p>
<p>Lastly, if you enjoyed the article &#8211; or just the flash map &#8211; then please leave a comment, I would really appreciate it, as it gives me always another boost to write more <img src='http://www.whatwasithinking.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.whatwasithinking.co.uk/2008/07/09/on-flash-map-integration-with-yahoo-maps-actionscript-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>On Flash &#8211; map integration with Yahoo Maps + ActionScript 2.0</title>
		<link>http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/</link>
		<comments>http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/#comments</comments>
		<pubDate>Mon, 05 May 2008 22:25:35 +0000</pubDate>
		<dc:creator>Alexander Rehm</dc:creator>
				<category><![CDATA[Flash Development]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[forums]]></category>
		<category><![CDATA[functionality]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[rich media application]]></category>
		<category><![CDATA[travel blog]]></category>
		<category><![CDATA[travel journal]]></category>
		<category><![CDATA[what was i thinking]]></category>
		<category><![CDATA[Yahoo maps]]></category>

		<guid isPermaLink="false">http://www.whatwasithinking.co.uk/?p=34</guid>
		<description><![CDATA[Alexander Rehm from What was I thinking UK discusses the next generation of travel blogs and has worked on an interactive travel journal with Yahoo Maps and Actionscript 2.0]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-41" title="on-flash" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/05/on-flash.jpg" alt="On Flash - map integration with Yahoo Maps + ActionScript 2.0" width="170" height="140" align="right" />In my job it isn&#8217;t always about a swish flash interface, a cool looking site or animation these days &#8211; it is about integration, about offering functionality that jumps out from the rest of the competition. The magic word is integration. A client of ours approached us about adding a special sort of travel-blog.</p>
<blockquote><p>What we would like is some sort of members-only application that allows our users to track their journeys with us and to maybe blog about them, but it should look swish and very easy to use. We would like a similar functionality for our travel guides who would then post information about the tours.</p></blockquote>
<p>The idea of a blog is a great tool for customer retention, if done right it allows users to post comments about their journeys, maybe with images to keep a log of what they are doing while on that trip. It would allow visitors to see what is going on on a journey with &lt;Company Name&gt; and what you can do or what the user(s) saw and took part in. Obviously, I wanted to offer a little bit more than just a blog. My idea was to work on a map-blog&#8230;<span id="more-34"></span></p>
<p><em>(Please note, if you would just like to see the map in action, just scroll down to the bottom of this page)</em></p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Integrating with new technologies</h3>
<p>For (flash) designers and developers there are a number of new technologies that give a user access to content and functionality that was not possible a year or two back. Let us take Google or Yahoo for example: developers are given access to a great and increasing number of technological toys to play with: application programming interfaces (APIs) to integrate content such as Flickr images and albums, mail, rss feeds or maps.</p>
<p>Anyone, from an individual to a development company, has access to these API components, and more and more people are using them to give their clients (or their portfolios) a WOW-factor.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Travel blog + map = travel journal</h3>
<p>Looking at the possibilities our CMS at work has (remember, its is aspx / .net) there was quite a range of possibilities we could offer our client something for the money. The obvious would have been setting up blog-facilities based on either each tour or destinations, giving registered users who have participated in a tour to blog and comment about it (we would run the user&#8217;s access against their booking history to grant write-rights). We could also set up forums and sub-forums to allow users to add comments about trips or destinations.</p>
<p>However, travel blogs or forum posts can be a bit text-laden, and the interaction only consists of a user posting, others reading and (if they like) commenting on posts.</p>
<p>Some time ago we did some Google Earth integration to one of our clients&#8217; website which allowed the client to plot out tours on Google Earth, to give the user the ability to &#8216;see&#8217; the tour and where it is going and what is going on. The idea of combining a map with a travel blog kinda became obvious.</p>
<p>With both Google Maps and Yahoo Maps giving excellent access to and support for their APIs I wanted to work on integrating a mapping solution with our user and blog-database. In the end I went for Yahoo Maps simply because their development network had a tremendous amount of information and code-snippets to get started with.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3><a href="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/05/yahoo-flash1.jpg"  rel="lightbox[roadtrip]"><img class="alignright size-thumbnail wp-image-36" title="Yahoo Maps flash integration" src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/05/yahoo-flash1-150x150.jpg" alt="Yahoo Maps flash integration" width="150" height="150" align="right" /></a>Yahoo maps and ActionScript &#8211; (API) key to success?</h3>
<p>Once the extension was downloaded and a API key registered I went on integrating the map into the workspace. Just import / drag the component into the stage. You can edit its size simply by entering a new width and height into the properties (by default on the bottom of the stage). Your next step will need to be to check out the parameters. The screenshot on the right (<em>click to enlarge</em>) shows you where you can find the API in Flash CS3 and what parameters you will need to change by default, such as API key, zoom factor or starting location (by default USA map).</p>
<p>Now that we have a working API-integration into flash I tackled the next step: integration of a server-database to read posted points as well as add points to it. (<em>In this example I used PHP / MySQL as this blog is based on a PHP system</em>). You need to set up a database via PHPMyAdmin for example. Here is a sql-database for you to have a look at and use:</p>
<blockquote><p><em>Please download the file here:</em> <a href="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/05/dataread.zip"></a><a href="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/05/entries.zip">entries.zip</a><em><br />
</em></p></blockquote>
<p>So, what do we have in this database now: We have an ID (unique value for each entry), lat and long, a date (for timestamping entries), a short info and a descritption. These are the fields I will be using for now.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Writing to and from the Database</h3>
<p>The next steps are to read from and enter information to the database through PHP. A simple</p>
<blockquote><p><span style="color: #008000;">$sql = &#8220;INSERT INTO entries (id, lat, lon, date, info, description) VALUES (&#8221;, &#8216;$lat&#8217;, &#8216;$lon&#8217;, &#8216;$date&#8217;, &#8216;$info&#8217;, &#8216;$description&#8217;)&#8221;;</span></p></blockquote>
<p>for entering information should do the trick. Which it did. I am not going into very much detail here, as the project is very code-heavy, but if you are interested in knowing more please do not hesitate to get in touch with me.</p>
<p><span style="color: #ffffff;">.</span></p>
<h3>The first travel journal test</h3>
<p>Here is now a first map-test <em>(please note that I have disabled entering notes at this stage)</em>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="760" height="560" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.whatwasithinking.co.uk/map-test/map3.swf" /><embed type="application/x-shockwave-flash" width="760" height="560" src="http://www.whatwasithinking.co.uk/map-test/map3.swf"></embed></object></p>
<p><span style="color: #ffffff;">.</span></p>
<h3>Closing comments and future plans for this project</h3>
<p>Getting the API to work was a bit tricky, and it took me a couple of hours to figure out what could be done and what didn&#8217;t when it came down to connecting to a database.</p>
<ul>
<li>User-access: At the moment any user can access the map, as such I will need to work on a login-based system, with each login having their own database table, and maybe a selector at the start to see whose trip journal you would like to visit. This should hopefully not be too difficult *touch wood*.</li>
<li>Image and video-upload: I will need to write an image upload script that saves the images on the server in the user&#8217;s folder and give each one a unique ID just in case. I&#8217;ll have to also look into resizing options and video compression if we are not using youtube etc</li>
<li>Linking: Users should be able to cross-link or link to products / posts / etc</li>
<li>Moderation &amp; Administration: &#8230;and ideally all of the above should be moderated and maintained</li>
<li>Plus, I want this to work in Adobe AIR later on as well, so I will need to rewrite a bit of the code later!</li>
</ul>
<p>Lastly, if you enjoyed the article &#8211; or just the flash map &#8211; then please leave a comment, I would really appreciate it, as it gives me always another boost to write more <img src='http://www.whatwasithinking.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[<strong>UPDATE:</strong> I have updated this project's progress <a title="On Flash - map integration with Yahoo Maps + ActionScript 2.0 (part 2)" href="http://www.whatwasithinking.co.uk/2008/07/09/on-flash-map-integration-with-yahoo-maps-actionscript-part-2/" target="_self">here</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
