<?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; AIR</title>
	<atom:link href="http://www.whatwasithinking.co.uk/tag/air/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>Wed, 01 Feb 2012 09:18:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/' addthis:title='On Flash &#8211; map integration with Yahoo Maps + ActionScript 2.0' ><a class="addthis_button_facebook_like"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_menu"></a></div>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.whatwasithinking.co.uk/2008/05/05/on-flash-map-integration-with-yahoo-maps-as-20/' addthis:title='On Flash &#8211; map integration with Yahoo Maps + ActionScript 2.0' ><a class="addthis_button_facebook_like"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_menu"></a></div>]]></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>4</slash:comments>
		</item>
		<item>
		<title>On AIR, bits of Silverlight and Prism and the dev-off</title>
		<link>http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/</link>
		<comments>http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 10:00:02 +0000</pubDate>
		<dc:creator>Alexander Rehm</dc:creator>
				<category><![CDATA[Flash Development]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[.net development]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[dev-off]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[UGC]]></category>

		<guid isPermaLink="false">http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/</guid>
		<description><![CDATA[Looking back at the last couple of years of software development, there are only a few applications that have had a breakthrough in numbers of users: FireFox, Trillian, Skype, Thunderbird, to mention a few. The UGC sites that have grown over the last couple of years (MySpace, Flickr, Facebook, digg, YouTube, to mention a few) can offer a great experience to their users, yet they only work when you are online and do not integrate with one's desktop (other than the "upload file/image" feature). Alex explores the subject of AIR and Silverlight in relation to his clients' requirements.<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/' addthis:title='On AIR, bits of Silverlight and Prism and the dev-off' ><a class="addthis_button_facebook_like"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_menu"></a></div>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.whatwasithinking.co.uk/wp-content/uploads/2008/03/dev-off.jpg" alt="dev-off" width="170" height="142" align="right" />Looking back at the last couple of years of software development, there are only a few applications that have had a breakthrough in numbers of users: FireFox, Trillian, Skype, Thunderbird, to mention a few. The UGC sites that have grown over the last couple of years (MySpace, Flickr, Facebook, digg, YouTube, to mention a few) can offer a great experience to their users, yet they only work when you are online (and in cases have a good internet connection) and they do not integrate with one&#8217;s desktop (other than the &#8220;upload file/image&#8221; feature).</p>
<p><span id="more-11"></span>This is where single-site browsers were/are trying to bridge the gap. They are installed on your desktop or in your dock an once started they give you a browser-like experience, but customized to the specific website they were downloaded from. Elements that won&#8217;t be needed (like the address or navigation bar) are hidden. A very good example is the <a href="http://willmore.eu/software/gmailbrowser/">Gmail browser</a>. This is also where my interest into the subject came from: how can we offer our clients something more &#8220;personal&#8221; or &#8220;customized to their needs or brand?&#8221;</p>
<p>Mozilla Prism (which had its first debut in 2006 under the name &#8220;WebRunner&#8221; and was launched by Mozilla Labs in Oct 2007) is a platform to create desktop-based apps from online applications. For example, with Prism you can turn Google calendar into its own desktop application which you could start from your desktop in its own SSB. Okay, this is a very short run-down of Prism, the main reason being that Prism allows <em>anyone</em> to download it and use it to fit to their needs.</p>
<p>Since this weblog is about considering development ideas (and progress) for B2B and B2C sites we need to talk about more proprietary software applications, which is where AIR and Silverlight come in. [I am considering talking about Prism at a later date].</p>
<p>Adobe AIR was first presented to the public in March 2007 (back then under the name Apollo) and was released as AIR in June of the same year. It is based on the open-source rendering engine called WebKit (the same that is being used by Safari and the iPhone) and supports Flash (ActionScript 3.0), CSS, HTML and JS natively. Additinally, you can style the interface in any way you would want, be it round, wavy, the possiblities are almost endless, making it ideal to customize the interface to the company&#8217;s / client&#8217;s specific needs. The installation of an AIR application is very straightforward, just install the AIR runtime (which is available for Windows as well as Mac, with Linux support coming soon) followed by the AIR application in question and within minutes you can enjoy the application.<br />
Adobe&#8217;s CS3 web suite is all you need to get started: get hold of DreamWeaver, Flash or Flex and off you go (provided you know the aforementioned languages somewhat).</p>
<p>In our office I held a presentation about AIR and its capabilities. After the presentation a discussion arose about whether to pursue AIR, Silverlight (our devs are .net developers), or both. The plan was to develop an application with the following specifications on both platforms:</p>
<ul>
<li>Photo gallery</li>
<li>Gallery information coming from a web-gallery of our development site (aspx, .net, XML)</li>
<li>Tied into Flickr</li>
<li>Needs to update itself if new photos are added to a gallery (including a note of sorts to indicate the update)</li>
<li>Ability to comment on photos</li>
</ul>
<p>I will write updates about this dev-off once we begun development.</p>
<p>I have just finished working on the information architecture, designs and flash for a client of ours, and since the client has such a big UGC integration we were thinking about a couple of apps for them afterwards: the gallery from above would definetly come in handy, an RSS reader for latest offers or updates to your tour, an offline blogging app which would synch to the site once you&#8217;re back online. Its just trying to find the time to actually sit down and spec them out &#8211; and selling them to the client! Right then, back to marketing 101.</p>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/' addthis:title='On AIR, bits of Silverlight and Prism and the dev-off' ><a class="addthis_button_facebook_like"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_menu"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.whatwasithinking.co.uk/2008/03/24/on-air-bits-of-silverlight-and-prism-and-the-dev-off/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

