<?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>geekworld.co &#187; work</title>
	<atom:link href="http://www.carnageuk.net/index.php/archives/category/work/feed" rel="self" type="application/rss+xml" />
	<link>http://www.carnageuk.net</link>
	<description>Katie Stockton Roberts - Interactive Developer</description>
	<lastBuildDate>Fri, 09 Dec 2011 21:44:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Flash on the Beach</title>
		<link>http://www.carnageuk.net/index.php/archives/65</link>
		<comments>http://www.carnageuk.net/index.php/archives/65#comments</comments>
		<pubDate>Fri, 01 Oct 2010 18:57:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.carnageuk.net/?p=65</guid>
		<description><![CDATA[Back from this years Flash on the Beach. So much to inspire me. In the next 4 months I hope to get to play with Robotlegs, get up close and personal with LoaderMax, have me some fun with Hype and get me a job at Magnetic North I also have to build the following iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>Back from this years <a href="http://www.flashonthebeach.com/schedule/">Flash on the Beach</a>.  So much to inspire me.</p>
<p>In the next 4 months I hope to get to play with <a href="http://www.robotlegs.org/">Robotlegs</a>, get up close and personal with <a href="http://www.greensock.com/loadermax/">LoaderMax</a>, have me some fun with <a href="http://www.hypeframework.org/">Hype</a> and get me a job at <a href="http://www.hypeframework.org/">Magnetic North</a> <img src='http://www.carnageuk.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I also have to build the following iPhone apps<br />
The Random Owl Generator<br />
Something that will turn my iPhone into a theremin in a different way to the <a href="http://www.frontierdesign.com/Theremin/">accelerometer theremin</a> iPhone apps that already exist</p>
<p><a href="http://www.carnageuk.net/index.php/flash-on-the-beach-notes">notes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carnageuk.net/index.php/archives/65/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>360 JavaScript</title>
		<link>http://www.carnageuk.net/index.php/archives/59</link>
		<comments>http://www.carnageuk.net/index.php/archives/59#comments</comments>
		<pubDate>Wed, 15 Sep 2010 20:01:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ford]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.carnageuk.net/?p=59</guid>
		<description><![CDATA[Some code written for a site I am working on. The site isn&#8217;t live yet but this 360 works brilliantly and the best bit is i wrote it // Provides: PROJECT.three-sixty PROJECT = (function( cmax ) { var me = project.threeSixty = project.threeSixty&#124;&#124; {}; var _totalImage = 174; var _imageArray=[]; var _rotateLeft; // anticlockwise var [...]]]></description>
			<content:encoded><![CDATA[<p>Some code written for a site I am working on.  The site isn&#8217;t live yet but this 360 works brilliantly and the best bit is i wrote it</p>
<p><code>// Provides: PROJECT.three-sixty</p>
<p>PROJECT = (function( cmax )<br />
{<br />
	var me = project.threeSixty = project.threeSixty|| {};</p>
<p>	var _totalImage = 174;<br />
	var _imageArray=[];</p>
<p>	var _rotateLeft; // anticlockwise<br />
	var _rotateRight; // clockwise</p>
<p>	var _imageContainer;</p>
<p>	var _currentImage=0;<br />
	var _previousX;<br />
	var _currentX;</p>
<p>	var _canRotate;</p>
<p>	var _rotateTimer;</p>
<p>	me.init = function()	{<br />
		$$( '#Gallery .galleryVideoPlayer' ).addClass( 'loading' );<br />
		me.setImageArray();</p>
<p>		// create control buttons<br />
		_rotateRight = $$( '#Gallery .three-sixtyControl a.right' );<br />
		_rotateLeft = $$( '#Gallery .three-sixtyControl a.left' );</p>
<p>		_imageContainer = $( 'PROJECT360' );</p>
<p>		// bind the control buttons<br />
		_rotateRight.addEvent('mousedown', moveRight);<br />
		_rotateLeft.addEvent('mousedown', moveLeft);</p>
<p>		_rotateRight.addEvent('mouseup', stopRotate);<br />
		_rotateLeft.addEvent('mouseup', stopRotate);</p>
<p>		// bind event to the actual image - going to<br />
		_imageContainer.addEvent('mousedown', startDrag);<br />
		_imageContainer.addEvent('mouseup', stopRotate);<br />
		_imageContainer.addEvent('mouseout', stopRotate);</p>
<p>		// and a key listner<br />
		this.addEvent('keydown', startMove);<br />
		this.addEvent('keyup', stopMove);<br />
	}</p>
<p>	me.setImageArray = function()	{<br />
		// remembering that Paul started the image array from 1 not 0!<br />
		for (i=1; i<=_totalImage; i++){<br />
			var iString = i;<br />
			if (i<10){<br />
				iString = '00'+i;<br />
			}else if (i<100 &#038;&#038; i>=10){<br />
				iString='0'+i;<br />
			}<br />
			var imageString = 'content/images/360/image_360 001 '+iString+'.jpg';<br />
			_imageArray.push(imageString);<br />
		}<br />
		loadImages();<br />
	}</p>
<p>	loadImages = function(){<br />
		for (i=0; i<_imageArray.length; i++){<br />
			$$( '#image-load-holder' ).set('src', _imageArray[i]);<br />
		}<br />
	}</p>
<p>	moveRight = function(e){<br />
		_canRotate = true;<br />
		rotateRight();<br />
	}</p>
<p>	moveLeft = function(e){<br />
		_canRotate = true;<br />
		rotateLeft();<br />
	}</p>
<p>	rotateLeft = function(){<br />
		if (_currentImage ==0)<br />
			_currentImage = _totalImage-1;<br />
		else<br />
			_currentImage --;<br />
		updateImage();<br />
		if (_canRotate)<br />
			_rotateTimer = rotateLeft.delay(100);<br />
	}</p>
<p>	rotateRight = function()<br />
	{<br />
		if (_currentImage ==_totalImage-1)<br />
			_currentImage = 0;<br />
		else<br />
			_currentImage ++;<br />
		updateImage();<br />
		if (_canRotate)<br />
			_rotateTimer = rotateRight.delay(100);<br />
	}</p>
<p>	updateImage = function(){<br />
		var image = _imageArray[_currentImage];<br />
		$$( '#CMAX360 img' ).set('src', image);<br />
	}</p>
<p>	startDrag = function(e){<br />
		e.preventDefault();<br />
		_currentX = [e.page.x];<br />
		// watch the mouse<br />
		_previousX = _currentX;<br />
		_imageContainer.addEvent('mousemove', dragging);<br />
	}</p>
<p>	dragging = function(e){<br />
		_currentX = [e.page.x];<br />
		if (_currentX != _previousX)<br />
		{<br />
			// either moving left or right!<br />
			if (_currentX > _previousX)<br />
				rotateLeft();<br />
			else<br />
				rotateRight();<br />
			_previousX = _currentX;<br />
		}<br />
	}</p>
<p>	stopRotate = function(e){<br />
		e.preventDefault();<br />
		_rotateTimer = $clear(_rotateTimer);<br />
		_imageContainer.removeEvent('mousemove', dragging);<br />
		_canRotate = false;<br />
	}</p>
<p>	startMove = function(e){<br />
		// listen for left and right arrows<br />
		if(e.key == "right"){<br />
			rotateRight();<br />
		}<br />
		else{<br />
			if(e.key== "left"){<br />
				rotateLeft();<br />
			}<br />
		}<br />
	}</p>
<p>	stopMove = function(e)<br />
	{<br />
		//alert("keyup")<br />
	}</p>
<p>	window.addEvent( 'domready', me.init );</p>
<p>	return project;</p>
<p>})( window.PROJECT || {} );</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carnageuk.net/index.php/archives/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roar! Check out this Lion</title>
		<link>http://www.carnageuk.net/index.php/archives/53</link>
		<comments>http://www.carnageuk.net/index.php/archives/53#comments</comments>
		<pubDate>Tue, 22 Jun 2010 20:21:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[Work awards]]></category>

		<guid isPermaLink="false">http://www.carnageuk.net/?p=53</guid>
		<description><![CDATA[Oversharers nominated for a Cannes Lion Check it out]]></description>
			<content:encoded><![CDATA[<p>Oversharers nominated for a Cannes Lion</p>
<p><a href="http://www.canneslions.com/work/media/entry.cfm?entryid=19732&#038;award=99">  Check it out </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carnageuk.net/index.php/archives/53/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

