<?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/"
	>

<channel>
	<title>Sam Burdge &#187; actionscript</title>
	<atom:link href="http://www.samburdge.co.uk/category/actionscript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.samburdge.co.uk</link>
	<description>Smarter Than The Average Blog</description>
	<pubDate>Sat, 18 Jun 2011 11:05:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tadpoles update</title>
		<link>http://www.samburdge.co.uk/development/tadpoles-update</link>
		<comments>http://www.samburdge.co.uk/development/tadpoles-update#comments</comments>
		<pubDate>Sun, 28 Dec 2008 16:44:51 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[gallery]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/?p=221</guid>
		<description><![CDATA[<!-- matched  --><!-- final 1 --></p><div id="swfE4f3376d43116f0e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f0e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2008/12/tadpoles_3.swf','600','400','6','#000000','');
// ]]>
</script><br />
Well here it is! the long overdue update to my <a href="http://www.samburdge.co.uk/search/tadpoles" target="_blank">tadpoles project</a>. I thought it was about time that my tadpoles had a natural predator, so I introduced these hungry bugs which I adapted from the woderfull open-source "walking things" which I found here: <a href="http://levitated.net/daily/levWalkingThings.html" target="_blank">levitated.net/daily/levWalkingThings.html</a></p>
<p>When each bug's body or legs touch a tadpole the tadpole attempts to escape, but when the bug's head touches the tadpole it can eat him.</p>
<p><a href="http://www.samburdge.co.uk/wp-content/uploads/2008/12/tadpoles_3.swf" target="_blank">Click here for full screen mode</a>.</p>
<p>In the next update I will try to give the bugs more 'intelligence' so that they can actively hunt the tadpoles. I will also write scripts that allow the tadpoles and bugs to grow as they eat more and get older, and to reproduce so that the supply of tadpoles doesn't run out.</p>
<p>I also want to introduce some inanimate objects, like rocks etc. that the creatures have to navigate around...</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 2 --></p><div id="swfE4f3376d43116f1e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f1e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2008/12/tadpoles_3.swf','600','400','6','#000000','');
// ]]>
</script><br />
Well here it is! the long overdue update to my <a href="http://www.samburdge.co.uk/search/tadpoles" target="_blank">tadpoles project</a>. I thought it was about time that my tadpoles had a natural predator, so I introduced these hungry bugs which I adapted from the woderfull open-source "walking things" which I found here: <a href="http://levitated.net/daily/levWalkingThings.html" target="_blank">levitated.net/daily/levWalkingThings.html</a></p>
<p>When each bug's body or legs touch a tadpole the tadpole attempts to escape, but when the bug's head touches the tadpole it can eat him.</p>
<p><a href="http://www.samburdge.co.uk/wp-content/uploads/2008/12/tadpoles_3.swf" target="_blank">Click here for full screen mode</a>.</p>
<p>In the next update I will try to give the bugs more 'intelligence' so that they can actively hunt the tadpoles. I will also write scripts that allow the tadpoles and bugs to grow as they eat more and get older, and to reproduce so that the supply of tadpoles doesn't run out.</p>
<p>I also want to introduce some inanimate objects, like rocks etc. that the creatures have to navigate around...</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/tadpoles-update/feed</wfw:commentRss>
		</item>
		<item>
		<title>Artanoid - Flash arkanoid game</title>
		<link>http://www.samburdge.co.uk/development/artanoid-flash-arkanoid-game</link>
		<comments>http://www.samburdge.co.uk/development/artanoid-flash-arkanoid-game#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:56:54 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[gallery]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/development/artanoid-flash-arkanoid-game</guid>
		<description><![CDATA[<!-- matched  --><!-- final 3 --><p>I built the game Artanoid for the <a href="http://www.76creative.com/" class="kblinker" target="_blank" title="More about 76 Creative &raquo;">76 Creative</a> website. It is a remake of the arcade classic Arkanoid with a 76 creative twist. The game has 5 levels, various 'power-ups' andalso saves and updates a score table using server side <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a>. I recommend turning the music on to get the full effect, with a different soundtrack for each level.</p>
</p><div id="swfE4f3376d43116f2e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f2e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/artanoid-viral-version/artanoid.swf?rootdirectory=http://www.samburdge.co.uk/artanoid-viral-version','600','397','8','#000000','');
// ]]>
</script>
<p>Check out the new <a href="http://www.artanoid.com/" target="_blank">Artanoid Website</a></p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 4 --><p>I built the game Artanoid for the <a href="http://www.76creative.com/" class="kblinker" target="_blank" title="More about 76 Creative &raquo;">76 Creative</a> website. It is a remake of the arcade classic Arkanoid with a 76 creative twist. The game has 5 levels, various 'power-ups' andalso saves and updates a score table using server side <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">php</a>. I recommend turning the music on to get the full effect, with a different soundtrack for each level.</p>
</p><div id="swfE4f3376d43116f3e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f3e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/artanoid-viral-version/artanoid.swf?rootdirectory=http://www.samburdge.co.uk/artanoid-viral-version','600','397','8','#000000','');
// ]]>
</script>
<p>Check out the new <a href="http://www.artanoid.com/" target="_blank">Artanoid Website</a></p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/artanoid-flash-arkanoid-game/feed</wfw:commentRss>
		</item>
		<item>
		<title>Flash - random motion and rotation - Actionscript 2</title>
		<link>http://www.samburdge.co.uk/development/flash-random-motion-and-rotation-actionscript-2</link>
		<comments>http://www.samburdge.co.uk/development/flash-random-motion-and-rotation-actionscript-2#comments</comments>
		<pubDate>Wed, 09 Apr 2008 11:32:11 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/development/flash-random-motion-and-rotation-actionscript-2</guid>
		<description><![CDATA[<!-- matched  --><!-- final 5 --><p>Back again, my pet tadpoles (they still haven't grown into frogs yet!). This time I am going to explain the actionscript that makes them move, turn and run from the mouse. Firstly, heres an example of what they do (move your mouse over them and watch 'em swim away):<span id="more-159"></span></p>
</p><div id="swfE4f3376d43116f4e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f4e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2007/11/tadpoles2.swf','540','360','8','#000000','');
// ]]>
</script>
<p>The first thing is to create 2 movie clips, one which is the tadpole itself the other is the movie that the mouse drags with it, in my example it is a transparent square 20 pixels height / width. Drag them to the stage. Give the mouse movie an instance name, for example 'mouse_mc', and on the first frame of your <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a> project include the following actionscript:</p>
<blockquote><p>var mouseListener:Object = new Object();</p>
<p>mouseListener.onMouseMove = function() {<br />
mouse_mc._x = _xmouse;<br />
mouse_mc._y = _ymouse;<br />
}<br />
Mouse.addListener(mouseListener);</p></blockquote>
<p>This script basically attaches the movie to the mouse, so the mouse drags it around. This is used later for the hitTest which causes the tadpole to swim away when the mouse_mc touches it. OK, now for the tadpole. Open the tadpole movie and on it's first frame enter this actionscript:</p>
<blockquote><p>acceleration = 20; // speed of the tadpole</p>
<p>newpos = function ()</p>
<p>{</p>
<p>ranx = random(600); // width of the area you want your tadpole to stay within</p>
<p>rany = random(400); // height of the area</p>
<p>};</p>
<p>newpos();</p>
<p>this.onEnterFrame = function()</p>
<p>{</p>
<p>// figure direction of movement, relative to current position</p>
<p>var dx = ranx-this._x;</p>
<p>var dy = rany-this._y;</p>
<p>// figure angle in radians</p>
<p>var ar = Math.atan2(dy,dx);</p>
<p>// convert to rotation in degrees</p>
<p>this._rotation = ar*180/Math.PI;</p>
<p>this._x += dx/acceleration;</p>
<p>this._y += dy/acceleration;</p>
<p>if (Math.abs(dx) &lt; 1 || Math.abs(dy) &lt; 1) {</p>
<p>newpos(); // move the tadpole</p>
<p>}</p>
<p>// if the mouse movie colides with it move in a different direction<br />
if(this.hitTest(_root.mouse_mc)){ this.newpos();}<br />
}</p></blockquote>
<p>Once you have done this you can duplicate the tadpole movie clip as many times as you want, to create a whole swarm of tadpoles! Be sure to give each duplicate a unique instance name eg. t1, t2, t3 etc.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 6 --><p>Back again, my pet tadpoles (they still haven't grown into frogs yet!). This time I am going to explain the actionscript that makes them move, turn and run from the mouse. Firstly, heres an example of what they do (move your mouse over them and watch 'em swim away):<span id="more-159"></span></p>
</p><div id="swfE4f3376d43116f5e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f5e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2007/11/tadpoles2.swf','540','360','8','#000000','');
// ]]>
</script>
<p>The first thing is to create 2 movie clips, one which is the tadpole itself the other is the movie that the mouse drags with it, in my example it is a transparent square 20 pixels height / width. Drag them to the stage. Give the mouse movie an instance name, for example 'mouse_mc', and on the first frame of your <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a> project include the following actionscript:</p>
<blockquote><p>var mouseListener:Object = new Object();</p>
<p>mouseListener.onMouseMove = function() {<br />
mouse_mc._x = _xmouse;<br />
mouse_mc._y = _ymouse;<br />
}<br />
Mouse.addListener(mouseListener);</p></blockquote>
<p>This script basically attaches the movie to the mouse, so the mouse drags it around. This is used later for the hitTest which causes the tadpole to swim away when the mouse_mc touches it. OK, now for the tadpole. Open the tadpole movie and on it's first frame enter this actionscript:</p>
<blockquote><p>acceleration = 20; // speed of the tadpole</p>
<p>newpos = function ()</p>
<p>{</p>
<p>ranx = random(600); // width of the area you want your tadpole to stay within</p>
<p>rany = random(400); // height of the area</p>
<p>};</p>
<p>newpos();</p>
<p>this.onEnterFrame = function()</p>
<p>{</p>
<p>// figure direction of movement, relative to current position</p>
<p>var dx = ranx-this._x;</p>
<p>var dy = rany-this._y;</p>
<p>// figure angle in radians</p>
<p>var ar = Math.atan2(dy,dx);</p>
<p>// convert to rotation in degrees</p>
<p>this._rotation = ar*180/Math.PI;</p>
<p>this._x += dx/acceleration;</p>
<p>this._y += dy/acceleration;</p>
<p>if (Math.abs(dx) &lt; 1 || Math.abs(dy) &lt; 1) {</p>
<p>newpos(); // move the tadpole</p>
<p>}</p>
<p>// if the mouse movie colides with it move in a different direction<br />
if(this.hitTest(_root.mouse_mc)){ this.newpos();}<br />
}</p></blockquote>
<p>Once you have done this you can duplicate the tadpole movie clip as many times as you want, to create a whole swarm of tadpoles! Be sure to give each duplicate a unique instance name eg. t1, t2, t3 etc.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/flash-random-motion-and-rotation-actionscript-2/feed</wfw:commentRss>
		</item>
		<item>
		<title>Time delay loading for swf files and images</title>
		<link>http://www.samburdge.co.uk/development/time-delay-loading-for-swf-files-and-images</link>
		<comments>http://www.samburdge.co.uk/development/time-delay-loading-for-swf-files-and-images#comments</comments>
		<pubDate>Wed, 26 Mar 2008 23:54:36 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/development/time-delay-loading-for-swf-files-and-images</guid>
		<description><![CDATA[<!-- matched  --><!-- final 6 --><p><span style="color: #ff0000">Q. How can  I make an image or swf file load after a specified number of seconds?</span></p>
<p><span style="color: #ffff00">A. Use the simple but effective flash_timer.swf file by Sam Burdge. Whoopeee!</span></p>
<p>Ever wanted a particular <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> movie or image to load up / start playing after the rest of your page has loaded, or after a set amount of time? This tutorial, and the support files provided with it will make it very easy indeed. The flash_timer.swf file will load a swf or image into your page after a number of seconds that you specify.</p>
<p><strong>Example:</strong></p>
<p>Check out this basic example to see a swf (called test.swf) load after a 10 second delay: <a href="http://www.samburdge.co.uk/code_examples/flash_timer/" target="_blank">Example 1</a><br />
You can view the source code of the example to see how it  works.</p>
<p><strong>Usage:</strong></p>
<ol>
<li>Download the source files using the link below, and unzip the archive.</li>
<li>Embed the swf file 'flash_timer.swf' into your webpage. In my example I have used the swfObject method to embed the file, but you can use whichever method you prefer. For more information about this you can check this <a href="http://jeroenwijering.com/?item=Embedding_Flash" target="_blank">useful tutorial by Jeroen Wijering</a>.</li>
<li>Set the height, width &amp; background colour of the swf according to those of the file you want to load in.</li>
<li>Pass the two variables that the file requires to work: myswf – the file that will be loaded &amp; mysecs – the number of seconds delay before the file is loaded. You can pass the variables in the url string, for example:</li>
</ol>
<blockquote><p>flash_timer.swf?myswf=my_movie.swf&amp;mysecs=5</p></blockquote>
<p>(This will load the movie 'my_movie.swf' after a 5 second delay.)</p>
<p>You can also pass the variables as flashvars, for example:</p>
<blockquote><p>flashvars="myswf=example.jpg&amp;mysecs=10"</p></blockquote>
<p>(This will load the image 'example.jpg' after a 10 second delay.)</p>
<p>I hope you find this useful, if you do or if you have any questions, please feel free to leave a comment on this page (no emails please, I won't reply unless you are offering me hard cash!!). The flash_timer.swf file is only 1kb, so it will not effect the overall loading time of your page, it can be embedded at any height/width dimensions and works from flash player 7 upwards.</p>
<p><strong>Download Source:</strong></p>
<p>The download contains the all important flash_timer.swf plus a working example (index.html). The size of the zip is 6kb. Enjoy!!</p>
<br />
<a href="http://www.samburdge.co.uk/wp-content/uploads/2008/03/flash_timer.zip">
<img src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" style="border: 0px; background: #000000; outline: 0; padding: 0; margin: 0;" />
</a><div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 6 --><p><span style="color: #ff0000">Q. How can  I make an image or swf file load after a specified number of seconds?</span></p>
<p><span style="color: #ffff00">A. Use the simple but effective flash_timer.swf file by Sam Burdge. Whoopeee!</span></p>
<p>Ever wanted a particular <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> movie or image to load up / start playing after the rest of your page has loaded, or after a set amount of time? This tutorial, and the support files provided with it will make it very easy indeed. The flash_timer.swf file will load a swf or image into your page after a number of seconds that you specify.</p>
<p><strong>Example:</strong></p>
<p>Check out this basic example to see a swf (called test.swf) load after a 10 second delay: <a href="http://www.samburdge.co.uk/code_examples/flash_timer/" target="_blank">Example 1</a><br />
You can view the source code of the example to see how it  works.</p>
<p><strong>Usage:</strong></p>
<ol>
<li>Download the source files using the link below, and unzip the archive.</li>
<li>Embed the swf file 'flash_timer.swf' into your webpage. In my example I have used the swfObject method to embed the file, but you can use whichever method you prefer. For more information about this you can check this <a href="http://jeroenwijering.com/?item=Embedding_Flash" target="_blank">useful tutorial by Jeroen Wijering</a>.</li>
<li>Set the height, width &amp; background colour of the swf according to those of the file you want to load in.</li>
<li>Pass the two variables that the file requires to work: myswf – the file that will be loaded &amp; mysecs – the number of seconds delay before the file is loaded. You can pass the variables in the url string, for example:</li>
</ol>
<blockquote><p>flash_timer.swf?myswf=my_movie.swf&amp;mysecs=5</p></blockquote>
<p>(This will load the movie 'my_movie.swf' after a 5 second delay.)</p>
<p>You can also pass the variables as flashvars, for example:</p>
<blockquote><p>flashvars="myswf=example.jpg&amp;mysecs=10"</p></blockquote>
<p>(This will load the image 'example.jpg' after a 10 second delay.)</p>
<p>I hope you find this useful, if you do or if you have any questions, please feel free to leave a comment on this page (no emails please, I won't reply unless you are offering me hard cash!!). The flash_timer.swf file is only 1kb, so it will not effect the overall loading time of your page, it can be embedded at any height/width dimensions and works from flash player 7 upwards.</p>
<p><strong>Download Source:</strong></p>
<p>The download contains the all important flash_timer.swf plus a working example (index.html). The size of the zip is 6kb. Enjoy!!</p>
<br />
<a href="http://www.samburdge.co.uk/wp-content/uploads/2008/03/flash_timer.zip">
<img src="http://www.samburdge.co.uk/wp-content/plugins/wp_file_download/download-button.png" style="border: 0px; background: #000000; outline: 0; padding: 0; margin: 0;" />
</a><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/time-delay-loading-for-swf-files-and-images/feed</wfw:commentRss>
		</item>
		<item>
		<title>Tadpoles - Basic Survival Training</title>
		<link>http://www.samburdge.co.uk/blog/tadpoles-basic-survival-training</link>
		<comments>http://www.samburdge.co.uk/blog/tadpoles-basic-survival-training#comments</comments>
		<pubDate>Tue, 20 Nov 2007 23:26:29 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[gallery]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/blog/tadpoles-basic-survival-training</guid>
		<description><![CDATA[<!-- matched  --><!-- final 7 --></p><div id="swfE4f3376d43116f6e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f6e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2007/11/tadpoles2.swf','540','360','8','#000000','');
// ]]>
</script>
<p>I have given my tadpoles their first lesson in survival, they now know how to run away from danger! Previously they had two basic behaviours:</p>
<ol>
<li>To face toward the direction in which they are moving.</li>
<li>To stay within the confines of the tank.</li>
</ol>
<p>They now have a third behaviour which is to move away from the mouse when you move it over them. If they get stuck under the mouse they wriggle around until they can get free!</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 8 --></p><div id="swfE4f3376d43116f7e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f7e','h'+'t'+'t'+'p'+':'+'//www.samburdge.co.uk/wp-content/uploads/2007/11/tadpoles2.swf','540','360','8','#000000','');
// ]]>
</script>
<p>I have given my tadpoles their first lesson in survival, they now know how to run away from danger! Previously they had two basic behaviours:</p>
<ol>
<li>To face toward the direction in which they are moving.</li>
<li>To stay within the confines of the tank.</li>
</ol>
<p>They now have a third behaviour which is to move away from the mouse when you move it over them. If they get stuck under the mouse they wriggle around until they can get free!</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/blog/tadpoles-basic-survival-training/feed</wfw:commentRss>
		</item>
		<item>
		<title>Tadpoles</title>
		<link>http://www.samburdge.co.uk/blog/tadpoles</link>
		<comments>http://www.samburdge.co.uk/blog/tadpoles#comments</comments>
		<pubDate>Tue, 06 Nov 2007 01:58:48 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[gallery]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/blog/tadpoles</guid>
		<description><![CDATA[<!-- matched  --><!-- final 9 --></p><div id="swfE4f3376d43116f8e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f8e','/wp-content/uploads/2007/11/tadpoles.swf','540','360','8','#000000','');
// ]]>
</script>
<p>Introducing my new pet tadpoles! Over the coming weeks I intend to train them to do things...like make tea, or write <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">PHP</a>. They're not very evolved yet though, just swimming around blindly.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 10 --></p><div id="swfE4f3376d43116f9e"></div><script type="text/javascript">
// <![CDATA[
webEngInsertWPFlash('swfE4f3376d43116f9e','/wp-content/uploads/2007/11/tadpoles.swf','540','360','8','#000000','');
// ]]>
</script>
<p>Introducing my new pet tadpoles! Over the coming weeks I intend to train them to do things...like make tea, or write <a href="http://www.php.net/" class="kblinker" target="_blank" title="More about php &raquo;">PHP</a>. They're not very evolved yet though, just swimming around blindly.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/blog/tadpoles/feed</wfw:commentRss>
		</item>
		<item>
		<title>random timing and color actionscripts</title>
		<link>http://www.samburdge.co.uk/development/random-timing-and-color-actionscripts</link>
		<comments>http://www.samburdge.co.uk/development/random-timing-and-color-actionscripts#comments</comments>
		<pubDate>Fri, 19 Oct 2007 00:45:35 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/v2/development/random-timing-and-color-actionscripts</guid>
		<description><![CDATA[<!-- matched  --><!-- final 10 --><p>Here are the actionscripts used in the {{post id="<a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a>-mousetrails-with-random-flashes" text="example" target="_self"}} swf. First the random timing script:</p>
<p><span id="more-51"></span></p>
<blockquote>
<pre class="actionscript"><span style="color: #808080; font-style: italic;">//random play</span></pre>
<pre class="actionscript"><span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<pre class="actionscript"><span style="color: #666666; font-weight: bold;">var</span> delay = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">30000</span>;
&nbsp;
setTimeout<span style="color: #66cc66;">&#40;</span>my_delayedFunction, delay<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-weight: bold;">function</span> my_delayedFunction <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre>
</blockquote>
<p>Random colour script:</p>
<blockquote>
<pre class="actionscript"><span style="color: #808080; font-style: italic;">//random color movieclip</span>
<span style="color: #0066CC;">onClipEvent</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
r=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
g=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
b=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
colourobj=<span style="color: #666666; font-weight: bold;">new</span> <span style="color: #0066CC;">Color</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
colourobj.<span style="color: #0066CC;">setRGB</span><span style="color: #66cc66;">&#40;</span>r&lt;&lt;<span style="color: #cc66cc;">16</span>|g&lt;&lt;<span style="color: #cc66cc;">8</span>|b<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre>
</blockquote>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 10 --><p>Here are the actionscripts used in the {{post id="<a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">flash</a>-mousetrails-with-random-flashes" text="example" target="_self"}} swf. First the random timing script:</p>
<p><span id="more-51"></span></p>
<blockquote>
<pre class="actionscript"><span style="color: #808080; font-style: italic;">//random play</span></pre>
<pre class="actionscript"><span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<pre class="actionscript"><span style="color: #666666; font-weight: bold;">var</span> delay = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">30000</span>;
&nbsp;
setTimeout<span style="color: #66cc66;">&#40;</span>my_delayedFunction, delay<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-weight: bold;">function</span> my_delayedFunction <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre>
</blockquote>
<p>Random colour script:</p>
<blockquote>
<pre class="actionscript"><span style="color: #808080; font-style: italic;">//random color movieclip</span>
<span style="color: #0066CC;">onClipEvent</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
r=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
g=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
b=<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*<span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
colourobj=<span style="color: #666666; font-weight: bold;">new</span> <span style="color: #0066CC;">Color</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
colourobj.<span style="color: #0066CC;">setRGB</span><span style="color: #66cc66;">&#40;</span>r&lt;&lt;<span style="color: #cc66cc;">16</span>|g&lt;&lt;<span style="color: #cc66cc;">8</span>|b<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre>
</blockquote>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/random-timing-and-color-actionscripts/feed</wfw:commentRss>
		</item>
		<item>
		<title>Flash mousetrails with random flashes!</title>
		<link>http://www.samburdge.co.uk/development/flash-mousetrails-with-random-flashes</link>
		<comments>http://www.samburdge.co.uk/development/flash-mousetrails-with-random-flashes#comments</comments>
		<pubDate>Thu, 18 Oct 2007 22:55:56 +0000</pubDate>
		<dc:creator>Sam Burdge</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.samburdge.co.uk/v2/development/flash-mousetrails-with-random-flashes</guid>
		<description><![CDATA[<!-- matched  --><!-- final 10 --><p>[swf]/wp-content/uploads/2007/10/lazer_grid_306_200.swf,306,200,9,#000000[/swf]</p>
<p>This is an example of the <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> intro I created for lazer's site using a repeat pattern of his logo. It runs a random ActionScript that causes the colors to change and the logos to flicker occasionally. The logos also respond to the mouse creating a trail effect as you move the mouse over them.</p>
<div style="clear: both;"></div>]]></description>
			<content:encoded><![CDATA[<!-- matched  --><!-- final 10 --><p>[swf]/wp-content/uploads/2007/10/lazer_grid_306_200.swf,306,200,9,#000000[/swf]</p>
<p>This is an example of the <a href="http://www.adobe.com/products/flashplayer/" class="kblinker" target="_blank" title="More about flash &raquo;">Flash</a> intro I created for lazer's site using a repeat pattern of his logo. It runs a random ActionScript that causes the colors to change and the logos to flicker occasionally. The logos also respond to the mouse creating a trail effect as you move the mouse over them.</p>
<div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.samburdge.co.uk/development/flash-mousetrails-with-random-flashes/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

