<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bauhouse</title>
	<atom:link href="http://bauhouse.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bauhouse.wordpress.com</link>
	<description>Design to build community</description>
	<lastBuildDate>Wed, 07 Dec 2011 19:21:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bauhouse.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bauhouse</title>
		<link>http://bauhouse.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bauhouse.wordpress.com/osd.xml" title="Bauhouse" />
	<atom:link rel='hub' href='http://bauhouse.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Getting Symphony CMS the Recognition it Deserves</title>
		<link>http://bauhouse.wordpress.com/2010/09/04/getting-symphony-cms-the-recognition-it-deserves/</link>
		<comments>http://bauhouse.wordpress.com/2010/09/04/getting-symphony-cms-the-recognition-it-deserves/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 22:11:30 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Symphony]]></category>
		<category><![CDATA[symphonycms]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=181</guid>
		<description><![CDATA[Those of us who&#8217;ve been around Symphony since its earliest days know just how far it&#8217;s come in the past couple of years. But whether you&#8217;ve been using Symphony for years or just discovered it recently, I think we can all agree on this: we are part of a fantastic project and a pretty special [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=181&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Those of us who&#8217;ve been around Symphony since its earliest days know<br />
just how far it&#8217;s come in the past couple of years. But whether you&#8217;ve<br />
been using Symphony for years or just discovered it recently, I think<br />
we can all agree on this: we are part of a fantastic project and a<br />
pretty special community.</p>
<p>I think it&#8217;s time we let people in on our little secret.</p>
<p>A couple opportunities have come to our attention, and we&#8217;re hoping to<br />
enlist all of you to help spread the word:</p>
<ol>
<li>Symphony&#8217;s nomination for Open Source Application of the Year by <a href="http://www.thenetawards.com/">.net Magazine Awards</a></li>
<li><a href="http://cmsreport.com/content/2010/08/packts-2010-open-source-awards-now-open">Packt Open Source Awards</a></li>
</ol>
<p>I hope you&#8217;ve come to love Symphony as much as I do, but in case you<br />
need convincing, take a moment to think back on all that we&#8217;ve<br />
accomplished in just the past year and a half:</p>
<ul>
<li><a href="http://symphony-cms.com/download/releases/">Symphony 2.0 was released</a> at the end of 2008 and has matured at a<br />
very fast pace.</li>
<li><a href="http://symphony-cms.com/discuss/blog/entry/welcome-to-the-future/">The new Symphony CMS site and brand</a> was launched in November 2009</li>
<li>We held our <a href="http://symphony-cms.com/discuss/blog/entry/join-us-in-london-for-symposium-2010/">first official meetup, Symposium 2010</a>, in London in June 2010</li>
<li><a href="http://symphony-cms.com/discuss/blog/entry/announcing-symphony-3-beta/">Symphony 3.0 beta</a> was released at the Symposium 2010</li>
<li><a href="http://symphony-cms.com/download/extensions/">196 Extensions</a> have been created by the community</li>
<li><a href="http://symphony-cms.com/download/xslt-utilities/">52 XSLT snippets</a> have been added to the Utilities library</li>
<li><a href="http://symphony-cms.com/download/ensembles/">A growing list of Ensembles</a> have been contributed</li>
<li>An impressive assortment of 278 sites have made the <a href="http://symphony-cms.com/explore/showcase/">Showcase</a> an<br />
ever-growing testament to Symphony&#8217;s power and flexibility.</li>
<li><a href="http://symphony-cms.com/download/releases/">Symphony 2.1 was released</a> in July 2010</li>
<li><a href="http://symphony-cms.com/discuss/blog/entry/announcing-symphony-working-groups/">Working Groups are being formed</a> to better involve the community in future development</li>
</ul>
<p>If anyone has other ideas about how to get the word out, please let us<br />
know. Let&#8217;s keep adding to our list of <a href="http://symphony-cms.com/discuss/thread/30414/">Symphony Marketing/Promo Ideas</a>.</p>
<p>Thanks everyone!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=181&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2010/09/04/getting-symphony-cms-the-recognition-it-deserves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 Dynamic Positioning</title>
		<link>http://bauhouse.wordpress.com/2009/02/11/actionscript-3-dynamic-positioning/</link>
		<comments>http://bauhouse.wordpress.com/2009/02/11/actionscript-3-dynamic-positioning/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 20:19:52 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=172</guid>
		<description><![CDATA[I came across this wonderful resource of amazing ActionScript examples from Justin Windle at Soulwire. He had an example of dynamic positioning to achieve a full screen Flash layout. Unfortunately, it was ActionScript 2.0 and I am busy learning ActionScript 3.0. So, I&#8217;ve been practicing my skills by migrating Justin&#8217;s code to AS3. Here&#8217;s what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=172&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came across this wonderful resource of amazing ActionScript examples from Justin Windle at Soulwire. He had an example of <a href="http://blog.soulwire.co.uk/flash/actionscript-2/dynamic-positioning-part-one/">dynamic positioning</a> to achieve a full screen Flash layout. Unfortunately, it was ActionScript 2.0 and I am busy learning ActionScript 3.0. So, I&#8217;ve been practicing my skills by migrating Justin&#8217;s code to AS3. Here&#8217;s what I came up with:</p>
<pre><code>package {

	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	public class AS3DynamicPositioning extends Sprite {

		private static const MARGIN:Number = 10;
		private static const BOX_SIZE:Number = 100;

		public function AS3DynamicPositioning() {

			// Setup the Stage properties
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;

			// Create some dummy boxes
			// This is only for the demonstration

			var boxes:Array = [
			["top", "0x9933cc"],
			["right", "0x00ff00"],
			["bottom", "0xff0000"],
			["left", "0x0099ff"],
			["center", "0xff3399"]];

			for (var i:uint = 0; i &lt; boxes.length; i++) {
				var newBox:Sprite;
				var boxColor:Number = boxes[i][1];

				var nameBadge:TextField = new TextField();
				var txtFmt:TextFormat = new TextFormat();
				var boxName:String = boxes[i][0];

				// newBox.createTextField ("test_txt", 1, 0, (boxSize / 2) - 10, boxSize, 10);

				txtFmt.align = TextFormatAlign.LEFT;
				txtFmt.color = 0xffffff;
				txtFmt.size = 16;
				txtFmt.font = "Arial";

				nameBadge.autoSize = TextFieldAutoSize.CENTER;
				nameBadge.width = BOX_SIZE;
				nameBadge.height = 24;
				nameBadge.x = BOX_SIZE / 2;
				nameBadge.y = BOX_SIZE / 2 - 12;
				nameBadge.defaultTextFormat = txtFmt;
				nameBadge.text = boxName;

				newBox = drawBox(BOX_SIZE, BOX_SIZE, boxColor);
				newBox.name = boxName;

				addChild(newBox);
				newBox.addChild(nameBadge);

			}

			setStage();
			traceObjects();

			function drawBox(width:Number, height:Number, color:Number):Sprite {
				// Call our function to set it all up right!
				var box:Sprite = new Sprite();
				box.graphics.beginFill(color);
				box.graphics.drawRect(0, 0, width, height);
				box.graphics.endFill();

				return box;
			}

			// Add an event listener
			stage.addEventListener(Event.RESIZE, stageListener);

			// When the Stage dimensions change...
			function stageListener(e:Event):void {
				// Call our function to reset stage positions
				setStage();
			}

			function setStage():void {
				var sw:Number = stage.stageWidth;
				var sh:Number = stage.stageHeight;

				var top:Sprite = Sprite(getChildByName("top"));
				var right:Sprite = Sprite(getChildByName("right"));
				var bottom:Sprite = Sprite(getChildByName("bottom"));
				var left:Sprite = Sprite(getChildByName("left"));
				var center:Sprite = Sprite(getChildByName("center"));

				// Rule for Top / Center alignment
				top.x = sw / 2 - top.width / 2;
				top.y = MARGIN;

				// Rule for Right / Middle alignment
				right.x = sw - (right.width + MARGIN);
				right.y = sh / 2 - right.height / 2;

				// Rule for Bottom / Center alignment
				bottom.x = sw / 2 - bottom.width / 2;
				bottom.y = sh - (bottom.height + MARGIN);

				// Rule for Left / Middle alignment
				left.x = MARGIN;
				left.y = sh / 2 - left.height / 2;

				// Rule for Center / Middle alignment
				center.x = sw / 2 - center.width / 2;
				center.y = sh / 2 - center.height / 2;
			}
		}

		private function traceObjects():void {
			trace("Stage: Number of Children: " + stage.numChildren);
			trace("Object Description: " + stage.getChildAt(0).toString());
			traceDisplayList(stage);
		}

		private function traceDisplayList(container:DisplayObjectContainer, indentString:String = ""):void
		{
			var child:DisplayObject;
			for (var i:uint=0; i &lt; container.numChildren; i++)
			{
				child = container.getChildAt(i);
				trace(indentString, child, child.name, "(depth: " + child.parent.getChildIndex(child) + ")");
				if (container.getChildAt(i) is DisplayObjectContainer)
				{
					traceDisplayList(DisplayObjectContainer(child), indentString + "    ")
				}
			}
		}
	}
}</code></pre>
<p>It also includes a couple extra functions to trace display objects. I was trying to figure out why I couldn&#8217;t access children of the stage by name. I was getting this error:</p>
<pre><code>Implicit coercion of a value with static type flash.display:DisplayObject to a possibly unrelated type flash.display:Sprite.</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=172&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/02/11/actionscript-3-dynamic-positioning/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 Drag Drop Grid</title>
		<link>http://bauhouse.wordpress.com/2009/02/06/actionscript-3-drag-drop-grid/</link>
		<comments>http://bauhouse.wordpress.com/2009/02/06/actionscript-3-drag-drop-grid/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 19:04:26 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=168</guid>
		<description><![CDATA[This code was an exercise in familiarizing myself with manipulating objects in the Display List. It involved taking the Drag-and-Drop in Flash CS3 Tutorial on dragging and dropping objects on a grid, and adding the ability to tween the movement of the objects from one grid point to another. It also provides a function to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=168&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This code was an exercise in familiarizing myself with manipulating objects in the Display List. It involved taking the <a href="http://www.flashandmath.com/basic/dragdroptour/dd_tour1.html">Drag-and-Drop in Flash CS3 Tutorial</a> on dragging and dropping objects on a grid, and adding the ability to tween the movement of the objects from one grid point to another. It also provides a function to trace the default instance name, the name property, the child index and type of each display list object.   </p>
<pre><code>package {

	/*
	Based on ActionScript 3 Tutorials by Doug Ensley and Barbara Kaskosz.
	www.flashandmath.com

	Adapted as an ActionScript class by Stephen Bau.
	www.domain7.com
	*/

	import flash.display.DisplayObjectContainer;
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.display.Graphics;
	import flash.display.Shape;
	import flash.geom.Point;
	import flash.events.MouseEvent;
	import flash.events.TimerEvent;
	import flash.filters.DropShadowFilter;
	import flash.text.TextField;
	import flash.utils.Timer;
	import fl.transitions.Tween;
	import fl.transitions.easing.*;

	[SWF(width="600", height="400", backgroundColor="0xFFFFFF", frameRate="30")]

	public class DragDropGrid extends Sprite {

		// Grid variables

		private var canvas:Sprite = new Sprite();
		private var canvasWidth:Number = 560;
		private var canvasHeight:Number = 360;
		private var grid:Number = 40;	 // Size of the grid and number of lattice points in each direction
		private var cols:Number = Math.ceil(canvasWidth/grid) - 1;
		private var rows:Number = Math.ceil(canvasHeight/grid) - 1;
		private var offset:Number = 20;

		// Object variables

		private var objects:Array = new Array();
		private var thisObject:Object;
		private var pointB:Point = new Point();

		public function DragDropGrid() {

			// Constructor

			setupGrid();
			addObjects();
			addListenersToObjects();
			traceObjects();
		}

		// Set up grid

		private function setupGrid() {

			canvas.graphics.beginFill(0xCCCCCC);
			canvas.graphics.drawRect(0,0,canvasWidth,canvasHeight);
			canvas.graphics.endFill();
			canvas.name = "canvas";
			this.addChild(canvas);

			// Add a bunch of circles to represent lattice points

			canvas.graphics.beginFill(0x000000);
			for (var i:uint=1; i&lt;=rows; i++) {
				for (var j:uint=1; j&lt;=cols; j++) {
					canvas.graphics.drawCircle(j*grid,i*grid,0.5);
				}
			}
			canvas.graphics.endFill();
			canvas.x = 20;
			canvas.y = 20;
		}

		// Add objects to grid

		private function addObjects() {
			for (var row:uint = 1; row &lt;= rows; row++) {
				for (var col:uint = 1; col &lt;= cols; col++) {
					var index:uint = ((row - 1) * cols) + col;
					objects[index] = new Sprite();
					createObject(objects[index], index);
					objects[index].x = col*grid + offset;
					objects[index].y = row*grid + offset;
				}
			}
		}

		// Add event listeners to all variables in the objects array

		private function addListenersToObjects():void {
			stage.addEventListener(MouseEvent.MOUSE_UP, stopAll);
			for (var x:uint = 1; x &lt; objects.length; x++) {
				objects[x].addEventListener(MouseEvent.MOUSE_DOWN, startMoveObject);
			}
		}

		private function startMoveObject(e:MouseEvent):void {
			stage.addEventListener(MouseEvent.MOUSE_MOVE, moveObject);
			thisObject = e.target;
			e.target.parent.setChildIndex(e.target, e.target.parent.numChildren - 1);
		}

		private function moveObject(e:MouseEvent):void {
			pointB.x = gridX(canvas.mouseX) + offset;
			pointB.y = gridY(canvas.mouseY) + offset;

			var objectMoveX:Tween;
			var objectMoveY:Tween;

			objectMoveX = new Tween(thisObject, "x", Strong.easeOut, thisObject.x, pointB.x, 0.5, true);
			objectMoveY = new Tween(thisObject, "y", Strong.easeOut, thisObject.y, pointB.y, 0.5, true);
		}

		private function stopAll(e:MouseEvent):void {
			stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveObject);
		}

		// Create rectangle

		private function createObject(
				obj:Sprite,
				objIndex:uint,
				objWidth:Number = 28,
				objHeight:Number = 28,
				frameBorder:Number = 3
				):void {
			obj.graphics.beginFill(0x999999);
			obj.graphics.drawRect(-objWidth/2, -objHeight/2, objWidth, objHeight);
			obj.graphics.endFill();
			obj.name += " object-" + objIndex;
			addChild(obj);

			var frame:Sprite = new Sprite();
			var frameWidth:Number = objWidth + (2 * frameBorder);
			var frameHeight:Number = objHeight + (2 * frameBorder);

			frame.graphics.beginFill(0xFFFFFF);
			frame.graphics.drawRect(-frameWidth/2, -frameHeight/2, frameWidth, frameHeight);
			frame.graphics.drawRect(-objWidth/2, -objHeight/2, objWidth, objHeight);
			frame.graphics.endFill();
			frame.name += " frame-" + objIndex;
			obj.addChild(frame);

			var txtFld:TextField = new TextField();
			txtFld.text = String(objIndex);
			txtFld.name += " textfield-" + objIndex;
			// obj.addChild(txtFld);
		}

		// Trace Display List

		private function traceObjects():void {
			trace("Stage: Number of Children: " + stage.numChildren);
			trace("Object Description: " + stage.getChildAt(0).toString()); // DragDropShift
			traceDisplayList(stage);
		}

		private function traceDisplayList(container:DisplayObjectContainer, indentString:String = ""):void
		{
			var child:DisplayObject;
			for (var i:uint=0; i &lt; container.numChildren; i++)
			{
				child = container.getChildAt(i);
				trace(indentString, child, child.name, "(depth: " + child.parent.getChildIndex(child) + ")");
				if (container.getChildAt(i) is DisplayObjectContainer)
				{
					traceDisplayList(DisplayObjectContainer(child), indentString + "    ")
				}
			}
		}

		// Helper functions to stay within boundary AND snap to grid

		private function gridX(inX:Number):Number {
			if (inX &gt; grid*cols) {
				return grid*cols;
			}

			if (inX &lt; grid) {
				return grid;
			}

			return grid*Math.round(inX/grid);
		}

		private function gridY(inY:Number):Number {
			if (inY &gt; grid*rows) {
				return grid*rows;
			}

			if (inY &lt; grid) {
				return grid;
			}

			return grid*Math.round(inY/grid);
		}
	}
}
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=168&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/02/06/actionscript-3-drag-drop-grid/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 Text Field Alpha</title>
		<link>http://bauhouse.wordpress.com/2009/01/30/actionscript-3-text-field-alpha/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/30/actionscript-3-text-field-alpha/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 20:33:37 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=158</guid>
		<description><![CDATA[Looking through the documentation for applying alpha transparency and rotation to a text field, I realized I need to learn something about embedding fonts. Searching for a solution led me to a solution: Making Alpha Work on AS3 Dynamic Text Fields. This doesn&#8217;t work: package { import flash.display.Sprite; import flash.text.TextField; public class TextAlpha extends Sprite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=158&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looking through the documentation for applying alpha transparency and rotation to a text field, I realized I need to learn something about embedding fonts. Searching for a solution led me to a solution: <a href="http://www.rabidgadfly.com/index.php/2008/10/14/making-alpha-work-on-as3-dynamic-text-fields/">Making Alpha Work on AS3 Dynamic Text Fields</a>.</p>
<p>This doesn&#8217;t work:</p>
<pre><code>package {

	import flash.display.Sprite;
	import flash.text.TextField;

	public class TextAlpha extends Sprite {

		private var textFld:TextField = new TextField();

		public function TextAlpha() {
			textFld.text = "This is a text field";
			textFld.alpha = .2;
			addChild(textFld);
		}
	}
}</code></pre>
<p>So, what to do? The Adobe Developer Connection resource may be the best place to start:</p>
<ul>
<li><a href="http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/#section6">Flash Quick Start: Embedding Fonts</a></li>
</ul>
<p>But how can this be accomplished without Flash, using the Flex 3 SDK?</p>
<ul>
<li><a href="http://www.connectedpixel.com/blog/fonts/embedding">The Unbearable Strangeness of Embedding Fonts</a></li>
<li><a href="http://polygeek.com/253_flex_fading-and-masking-with-device-fonts">Fading and masking with device fonts</a></li>
<li><a title="Permanent Link to Making Alpha Work on AS3 Dynamic Text Fields" href="http://www.rabidgadfly.com/index.php/2008/10/14/making-alpha-work-on-as3-dynamic-text-fields/">Making Alpha Work on AS3 Dynamic Text Fields</a></li>
<li><a href="http://bryanlangdon.com/blog/2007/03/22/loading-fonts-dynamically-in-actionscript-2-and-3/">Loading Fonts Dynamically in Actionscript 2 and 3</a></li>
<li><a href="http://www.allflashwebsite.com/article/embedding-fonts-in-flash-cs3-the-good-way">Embedding Fonts in Flash CS3 the Good Way</a></li>
<li><a href="http://www.communitymx.com/content/article.cfm?cid=67A61">Sharing Fonts in ActionScript 3.0 &#8211; Part 1: Creating a Font SWF</a></li>
<li><a href="http://www.mokisystems.com/blog/flash-as3-loading-fonts/">Flash AS3 Loading Fonts</a></li>
<li><a href="http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading-with-as3-flash-cs3-not-flex/">Runtime font loading with AS3 / Flash CS3 (not Flex!)</a></li>
</ul>
<p>I was never able to successfully use the [Embed] metatag to compile a SWF file for embedding and loading fonts. I created a SWF with an embedded font in Flash CS3, then I created the following class to load the embedded font and display and transform the text using the loaded font. If no font is found, the error handing event displays the text in Arial with no transformation.</p>
<pre><code>package {

	import flash.display.Sprite;
	import flash.display.Loader;
	import flash.display.LoaderInfo;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.net.URLRequest;
	import flash.system.LoaderContext;
	import flash.text.Font;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFieldAutoSize;

	public class EnumerateFonts extends Sprite {

		private var t:TextField = new TextField();
		private var f:TextFormat = new TextFormat();
		private var font:Font;
		private var fontFile:String = "Helvetica.swf";

		public function EnumerateFonts() {

			// trace loaded fonts
			var fonts:Array = Font.enumerateFonts();

			// to list all available fonts, use the following instead:
			// var fonts:Array = Font.enumerateFonts(true);

			if (fonts.length == 0) {
				t.text="No fonts are loaded";
			} else {
				for (var x:uint=0; x&lt;fonts.length; x++) {

					font = fonts[x];
					trace(&quot;fontName : &quot; + font.fontName);
					trace(&quot;fontStyle : &quot; + font.fontStyle);
					trace(&quot;fontType : &quot; + font.fontType);
				}
			}

			//load font
			var loader:Loader = new Loader();

			loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaded);

			loader.load(new URLRequest(fontFile));
		}

 	 	private function ioErrorHandler(event:IOErrorEvent):void {
 	 	 	trace(&quot;No fonts loaded: &quot; + event);
			fontNotLoaded();
 	 	 }

		private function onLoaded(event:Event):void {

			// trace loaded swf and fonts
			trace(&quot;SWF loaded: &quot; + fontFile);
			var fonts:Array = Font.enumerateFonts();
			for (var x:uint = 0; x &lt; fonts.length; x++) {

				font = fonts[x];
				trace(&quot;fontName : &quot; + font.fontName);
				trace(&quot;fontStyle : &quot; + font.fontStyle);
				trace(&quot;fontType : &quot; + font.fontType);

			}
			fontLoaded();
		}

		private function addTextField() {
			// default text field properties
			t.defaultTextFormat = f;
			t.x = 40;
			t.y = 40;
			t.background = true;
			t.autoSize = TextFieldAutoSize.LEFT;
			addChild(t);
		}

		private function fontLoaded() {
			// Text format
			f.font = font.fontName; // &quot;HelveticaNeueLT Std Lt&quot;
			f.size = 48;

			// Text field
			addTextField();
			t.text = &quot;The font is loaded:\n&quot;;
			t.text += font.fontName;
			t.embedFonts = true;
			t.alpha = .5;
			t.rotation = 10;
		}

		private function fontNotLoaded() {
			// Text format
			f.font = &quot;Arial&quot;;
			f.size = 24;

			// Text field
			addTextField();
 	 	 	t.text = &quot;No fonts loaded&quot; + &quot;\n&quot;;
			t.text += &quot;Default font: Arial&quot;;
		}
	}
}</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=158&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/30/actionscript-3-text-field-alpha/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 Dynamic Fluid Grid</title>
		<link>http://bauhouse.wordpress.com/2009/01/26/actionscript-3-dynamic-fluid-grid/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/26/actionscript-3-dynamic-fluid-grid/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 00:44:29 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=152</guid>
		<description><![CDATA[I wanted to figure out how to build a Cartesian coordinate grid system that would dynamically center and scale when the stage was resized. Here&#8217;s what I came up with: package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.Timer; [SWF(width="630", height="415", backgroundColor="#000000", frameRate="30")] public class FluidGrid extends Sprite { // Instantiate stage variables public [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=152&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to figure out how to build a Cartesian coordinate grid system that would dynamically center and scale when the stage was resized. Here&#8217;s what I came up with:</p>
<pre><code>package {

	import flash.display.*;
	import flash.events.*;
	import flash.text.*;
	import flash.utils.Timer;

	[SWF(width="630", height="415", backgroundColor="#000000", frameRate="30")]

	public class FluidGrid extends Sprite {

		// Instantiate stage variables
		public var sw:Number = stage.stageWidth;
		public var sh:Number = stage.stageHeight;

		// Draw grid lines
		public var grid:Sprite = new Sprite();
		public var horzLines:Sprite = new Sprite();
		public var vertLines:Sprite = new Sprite();
		public var gridLines:Array = new Array();
		public var spacing:Number = 24;
		public var lineColor:int = 0x333333;
		public var lineWeight:Number = 1;
		public var lineAlpha:Number = 0.5;
		public var lineHinting:Boolean = true;
		public var lineScale:String = "none";

		// Draw x-axis and y-axis
		public var xAxis:Sprite = new Sprite();
		public var yAxis:Sprite = new Sprite();
		public var xAxisColor:int = 0xeeeeee;
		public var yAxisColor:int = 0xeeeeee;

		public var hLine:Shape = new Shape();
		public var vLine:Shape = new Shape();

		public var numVertLines:int = Math.floor(sw/spacing);
		public var numHorzLines:int = Math.floor(sh/spacing);
		public var xOffset:Number = (Math.ceil(numHorzLines/2) * spacing) - (sw/2);
		public var yOffset:Number = (Math.ceil(numVertLines/2) * spacing) - (sh/2); 

		// Reusable array index variable
		private var i:int;

		public function FluidGrid() {
			// Turn scaling off and set alignment to top left
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;

			// Draw grid lines
			drawGridLines();
			addChild(grid);
			grid.addChild(horzLines);
			grid.addChild(vertLines);

			// Draw x- and y-axes and add to display list
			drawAxes();

			// Add event listener to redraw grid on stage resize
			stage.addEventListener(Event.RESIZE, resizeListener);

			// Add debug data to display list
			var debug:DebugData = new DebugData(stage);
			debug.alpha = 0.2;
			addChild(debug);
		}

		private function resizeListener(e:Event):void {
			// Stage size at resize
			sh = stage.stageHeight;
			sw = stage.stageWidth;

			resizeAxes();
			redrawGridLines();
		}

		private function resizeAxes():void {
			// Scale x-axis and y-axis at stage resize
			yAxis.height = sh;
			yAxis.x = sw/2;
			xAxis.width = sw;
			xAxis.y = sh/2;
		}

		private function redrawGridLines():void {
			// Determine number of lines to draw
			numHorzLines = Math.floor(sh/spacing);
			numVertLines = Math.floor(sw/spacing);

			// Determine horizontal and vertical offsets
			xOffset = (sw/2) - (Math.ceil(numVertLines/2) * spacing);
			yOffset = (sh/2) - (Math.ceil(numHorzLines/2) * spacing); 

			// Resize horizontal lines
			for (i = 0; i &lt; horzLines.numChildren; i++) {
				horzLines.getChildAt(i).width = sw;
				horzLines.getChildAt(i).y = i * spacing + yOffset;
			}

			// Resize vertical lines
			for (i = 0; i &lt; vertLines.numChildren; i++) {
				vertLines.getChildAt(i).height = sh;
				vertLines.getChildAt(i).x = i * spacing + xOffset;
			}

			// If number of existing lines is less than lines required to fill screen
			if (numHorzLines &gt; horzLines.numChildren) {
				// Draw additional horizontal lines
				for (i = horzLines.numChildren - 1; i &lt;= numHorzLines; i++) {
					gridLines[i] = new Shape();
					gridLines[i].name = "hLine" + i;
					drawHorzLine(gridLines[i]);
					gridLines[i].y = (i + 1) * spacing + yOffset;
				}
			}

			// If number of existing lines is less than lines required to fill screen
			if (numVertLines &gt; vertLines.numChildren) {
				// Draw additional vertical lines
				for (i = vertLines.numChildren - 1; i &lt;= numVertLines; i++) {
					gridLines[i] = new Shape();
					gridLines[i].name = "vLine" + i;
					drawVertLine(gridLines[i]);
					gridLines[i].x = (i + 1) * spacing + xOffset;
				}
			}
		}

		private function drawAxes():void {
			// Draw lines at center stage
			var yg:Graphics = yAxis.graphics;
			var xg:Graphics = xAxis.graphics;

			yg.lineStyle(lineWeight, yAxisColor, lineAlpha, lineHinting, lineScale);
			yg.moveTo(0,0);
			yg.lineTo(0,sh);
			yAxis.x = sw/2;

			xg.lineStyle(lineWeight, xAxisColor, lineAlpha, lineHinting, lineScale);
			xg.moveTo(0,0);
			xg.lineTo(sw,0);
			xAxis.y = sh/2;

			addChild(yAxis);
			addChild(xAxis);
		}

		private function drawHorzLine(horzLine:Shape):void {
			var hl:Graphics = horzLine.graphics;
			hl.lineStyle(lineWeight, lineColor, lineAlpha, lineHinting, lineScale);
			hl.moveTo(0,0);
			hl.lineTo(sw,0);
			horzLines.addChild(horzLine);
		}

		private function drawVertLine(vertLine:Shape):void {
			var vl:Graphics = vertLine.graphics;
			vl.lineStyle(lineWeight, lineColor, lineAlpha, lineHinting, lineScale);
			vl.moveTo(0,0);
			vl.lineTo(0,sh);
			vertLines.addChild(vertLine);
		}

		private function drawGridLines():void {
			// Set grid spacing and line style
			numHorzLines = Math.floor(sh/spacing);
			numVertLines = Math.floor(sw/spacing);

			xOffset = (sw/2) - (Math.ceil(numVertLines/2) * spacing);
			yOffset = (sh/2) - (Math.ceil(numHorzLines/2) * spacing); 

			// Draw horizontal lines
			for (i = 0; i &lt;= numHorzLines; i++) {
				gridLines[i] = new Shape();
				gridLines[i].name = "hLine" + i;
				drawHorzLine(gridLines[i]);
				gridLines[i].y = i * spacing + yOffset;
			}

			// Draw vertical lines
			for (i = 0; i &lt;= numVertLines; i++) {
				gridLines[i] = new Shape();
				gridLines[i].name = "vLine" + i;
				drawVertLine(gridLines[i]);
				gridLines[i].x = i * spacing + xOffset;
			}
		}
	}
}</pre>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=152&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/26/actionscript-3-dynamic-fluid-grid/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript Live Debug Class</title>
		<link>http://bauhouse.wordpress.com/2009/01/22/actionscript-live-debug-class/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/22/actionscript-live-debug-class/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 07:10:35 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=148</guid>
		<description><![CDATA[I wanted to have a way of tracking object attributes in real time within the Flash movie. As a test case, I wanted to track the position of the mouse using a dynamic text box. Here is the result: Edit: This has been updated to include stage dimensions and to update on stage resize. package [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=148&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to have a way of tracking object attributes in real time within the Flash movie. As a test case, I wanted to track the position of the mouse using a dynamic text box. Here is the result:</p>
<p><strong>Edit</strong>: This has been updated to include stage dimensions and to update on stage resize.</p>
<pre><code>package {

	import flash.display.*;
	import flash.events.*;
	import flash.text.*;
	import flash.utils.Timer;

	[SWF(width="800", height="600", backgroundColor="#ffffff", frameRate="30")]

	public class DebugData extends Sprite {

		// Instantiate stage variables
		public var sw:Number = stage.stageWidth;
		public var sh:Number = stage.stageHeight;

		// Instantiate text field variables
		public var txtFld_mouseX:TextField = new TextField();
		public var txtFld_mouseY:TextField = new TextField();
		public var txtFld_stageW:TextField = new TextField();
		public var txtFld_stageH:TextField = new TextField();

		// Instantiate text string variables
		public var txtStr_mouseX:String;
		public var txtStr_mouseY:String;
		public var txtStr_stageW:String;
		public var txtStr_stageH:String;

		public function DebugData() {
			// Turn scaling off and set alignment to top left
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;

			// Create text fields
			createTextField(txtFld_mouseX, "Mouse X: ");
			createTextField(txtFld_mouseY, "Mouse Y: ", 20, 50);
			createTextField(txtFld_stageW, "Stage Width: ", 20, 80);
			createTextField(txtFld_stageH, "Stage Height: ", 20, 110);

			// Add text fields to display list
			addChild(txtFld_mouseX);
			addChild(txtFld_mouseY);
			addChild(txtFld_stageW);
			addChild(txtFld_stageH);

			// Add an event listener to update debug text
			debug();
		}

		private function createTextField(txtFld:TextField, txtStr:String, txtFldX:int = 20, txtFldY:int = 20):void {
			var txtFmt:TextFormat = new TextFormat();

			// Format text
			txtFmt.font = "Helvetica";
			txtFmt.color = 0x333333;
			txtFmt.size = 14;
			txtFmt.leading = 6;
			txtFmt.leftMargin = txtFmt.rightMargin = 4;

			// Text field properties
			txtFld.x = txtFldX
			txtFld.y = txtFldY;
			txtFld.width = 200;
			txtFld.height = 20;
			txtFld.border = txtFld.background = true;
			txtFld.borderColor = 0xCCCCCC;
			txtFld.background = true;
			txtFld.backgroundColor = 0xEEEEEE;
			txtFld.defaultTextFormat = txtFmt;
			txtFld.text = txtStr;
		}

		private function debug():void {
			var timer:Timer = new Timer(1000/30);
			timer.addEventListener(TimerEvent.TIMER, traceOutput);
			timer.start();
		}

		private function traceOutput(e:TimerEvent):void {
			// Debug text
			txtStr_mouseX = "Mouse X: " + mouseX;
			txtStr_mouseY = "Mouse Y: " + mouseY;
			txtStr_stageW = "Stage Width: " + stage.stageWidth;
			txtStr_stageH = "Stage Height: " + stage.stageHeight;

			// Update text fields with debug text
			txtFld_mouseX.text = txtStr_mouseX;
			txtFld_mouseY.text = txtStr_mouseY;
			txtFld_stageW.text = txtStr_stageW;
			txtFld_stageH.text = txtStr_stageH;
		}
	}
}</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=148&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/22/actionscript-live-debug-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript DragRotatePedal</title>
		<link>http://bauhouse.wordpress.com/2009/01/21/actionscript-dragrotatepedal/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/21/actionscript-dragrotatepedal/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 00:38:32 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=145</guid>
		<description><![CDATA[In an effort to duplicate the behaviour of this Flash5 example in ActionScript 3.0, I came up with the following, adapted for use with slightly different objects to simulate the rotation of a bike pedal: package { import flash.display.*; import flash.events.*; import flash.utils.Timer; public class DragRotatePedal extends Sprite { // Main document class public var [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=145&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In an effort to duplicate the behaviour of <a href="http://www.senocular.com/flash/source.php?id=0.78">this Flash5 example</a> in ActionScript 3.0, I came up with the following, adapted for use with slightly different objects to simulate the rotation of a bike pedal:</p>
<pre><code>package {

	import flash.display.*;
	import flash.events.*;
	import flash.utils.Timer;

	public class DragRotatePedal extends Sprite {

		// Main document class

		public var angle:Number;
		public var timer:Timer;

		public function DragRotatePedal() {
			// add event listeners
			crank.pedal.addEventListener(MouseEvent.MOUSE_DOWN, rotatePedal);

			// trace mouse position every second
			// debug();
		}

		function rotatePedal(e:MouseEvent):void {
			// trace("Mouse DOWN on pedal");

			stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
			stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);

			function onMouseMove(e:MouseEvent):void {

				// get an angle to the mouse using atan2 (gets radians)
				angle = Math.atan2(mouseY - crank.y, mouseX - crank.x);

				// apply rotation to crank shaft by converting angle into degrees
				crank.rotation = angle * 180 / Math.PI;

				// rotate the pedal opposite to the crank shaft so it won't rotate along with it
				crank.pedal.rotation = -crank.rotation;
			}

			function onMouseUp(e:MouseEvent):void {
				//	trace("Mouse UP on pedal");
				stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
			}
		}

		function debug():void {
			timer = new Timer(1000);
			timer.addEventListener(TimerEvent.TIMER, traceOutput);
			timer.start();
		}

		function traceOutput(e:TimerEvent):void {
			trace("mouseX: " + mouseX);
			trace("mouseY: " + mouseY);
		}
	}
}
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=145&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/21/actionscript-dragrotatepedal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3D Libraries</title>
		<link>http://bauhouse.wordpress.com/2009/01/16/actionscript-3d-libraries/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/16/actionscript-3d-libraries/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 06:42:39 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=113</guid>
		<description><![CDATA[In researching the ability to make use of 3D ActionScript libraries with the Flex 3 SDK, I came across an AS3Dmod tutorial created by Bartek Drozdz of Everyday Flash that uses the PaperVision3D library. A list of the most popular 3D Flash engines include: Papervision3D Away3d Sandy3d Alternativa3d FIVe3D AS3Dmod, a cross-engine 3d modifier library [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=113&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In researching the ability to make use of 3D ActionScript libraries with the Flex 3 SDK, I came across an <a href="http://www.everydayflash.com/blog/index.php/2009/01/06/the-as3dmod-tutorial/">AS3Dmod tutorial</a> created by   Bartek Drozdz of <a href="http://www.everydayflash.com/blog">Everyday Flash</a> that uses the <a href="http://blog.papervision3d.org/">PaperVision3D</a> library.</p>
<p>A list of the most popular 3D Flash engines include:</p>
<ul>
<li><a href="http://pv3d.org/">Papervision3D</a></li>
<li><a href="http://www.away3d.com/">Away3d</a></li>
<li><a href="http://www.flashsandy.org/">Sandy3d</a></li>
<li><a href="http://alternativaplatform.com/en/alternativa3d/">Alternativa3d</a></li>
<li><a href="http://five3d.mathieu-badimon.com/">FIVe3D</a></li>
</ul>
<p><strong><span style="font-weight:normal;"><a href="http://www.everydayflash.com/blog/index.php/2008/09/03/as3dmod/">AS3Dmod</a></span></strong>, a cross-engine 3d modifier library for Flash, was developed by Bartek Drozdz as a way to interact with several 3D Flash engines.</p>
<p>Another site that had a lot of examples of Papervision3D: <a href="http://blog.reyco1.com/eploring-a-papervision3d-class-movieassetparticlematerial/">reyco1.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=113&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/16/actionscript-3d-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>Configure Flex 3 SDK classpath</title>
		<link>http://bauhouse.wordpress.com/2009/01/16/configure-flex-3-sdk-classpath/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/16/configure-flex-3-sdk-classpath/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 06:36:21 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=99</guid>
		<description><![CDATA[The Adobe Flex 3 documentation describes Flex SDK Configuration, and more specifically how to configure the source path and library path for the mxmlc Flex Ant task used to compile Flash application files. I don&#8217;t have Flex Builder, but I do have Flash CS3, so I can compile SWF files within the Flash IDE. However, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=99&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Adobe Flex 3 documentation describes <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=compiledeploy_3.html">Flex SDK Configuration</a>, and more specifically how to <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_5.html#207493">configure the source path and library path</a> for the <code>mxmlc</code> Flex Ant task used to compile Flash application files. I don&#8217;t have Flex Builder, but I do have Flash CS3, so I can compile SWF files within the Flash IDE. However, I wanted to be able to build open source ActionScript without the requirement of a commercial product to compile Flash files, especially since I jump between Mac OS X and Windows XP as I am learning more. (Agus Santoso has blogged about <a href="http://asantoso.wordpress.com/2008/05/18/flex-3-sdk-command-line-development-with-example-on-linux/">Flex 3 sdk command line development with example on Linux</a>.)</p>
<p>I have the Flex 3 SDK installed at the root of my user directory in Mac OS X:</p>
<pre><code>~/flex</code></pre>
<p>The structure of my documents looks like this:</p>
<pre><code>~/flex/classes
~/flex/data</code></pre>
<p>If I try to compile an ActionScript file that imports classes that I have in the classes directory, I will receive the following error, indicating that the classes are not being found.</p>
<pre><code>Error: A file found in a source-path 'AS3DModTutorial' must have the same name as the class definition inside the file 'AS3DmodTutorial'.</code></pre>
<p>The configuration file for the mxmlc Flex Ant task is stored here:</p>
<pre><code>~/flex/frameworks/flex-config.xml</code></pre>
<p>To configure the classpath, uncomment the following text:</p>
<pre><code>&lt;flex-config&gt;
   &lt;compiler&gt;
      ...
      &lt;!-- List of path elements that form the roots of ActionScript class hierarchies. --&gt;
      &lt;!-- not set --&gt;
      &lt;!--
      &lt;source-path&gt;
         &lt;path-element&gt;string&lt;/path-element&gt;
      &lt;/source-path&gt;
      --&gt;
      ...
   &lt;/compiler&gt;
&lt;/flex-config&gt;
</code></pre>
<p>Change the XML to:</p>
<pre><code>      &lt;source-path&gt;
         &lt;path-element&gt;/Users/stephen/flex/classes&lt;/path-element&gt;
      &lt;/source-path&gt;
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=99&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/16/configure-flex-3-sdk-classpath/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript 3 SWF metadata tag</title>
		<link>http://bauhouse.wordpress.com/2009/01/16/135/</link>
		<comments>http://bauhouse.wordpress.com/2009/01/16/135/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:28:52 +0000</pubDate>
		<dc:creator>bauhouse</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://bauhouse.wordpress.com/?p=135</guid>
		<description><![CDATA[Using MXMLC (the MXML and ActionScript 3 stand alone, command line compiler provided with the free Flex 3 SDK) to compile your ActionScript 3 SWFs, you can use the SWF metadata tag to set common properties in the main document class for the application. The SWF metadata tag supports 4 properties width height frameRate backgroundColor package [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=135&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using MXMLC (the MXML and ActionScript 3 stand alone, command line compiler provided with the free <a href="http://www.adobe.com/products/flex/sdk/" target="_blank">Flex 3 SDK</a>) to compile your ActionScript 3 SWFs, you can use the SWF metadata tag to set common properties in the main document class for the application. The SWF metadata tag supports 4 properties</p>
<ul>
<li>width</li>
<li>height</li>
<li>frameRate</li>
<li>backgroundColor</li>
</ul>
<pre><code>package {
    [SWF(width="800", height="600", frameRate="60", backgroundColor="#FFFFFF")]
    public class Main extends Sprite {

    }
}</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bauhouse.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bauhouse.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bauhouse.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bauhouse.wordpress.com&amp;blog=281978&amp;post=135&amp;subd=bauhouse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bauhouse.wordpress.com/2009/01/16/135/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bac24b344b3f93a2a675c4c0ae6137d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bauhouse</media:title>
		</media:content>
	</item>
	</channel>
</rss>
