XML Namespaces

This article isn't to teach you what namespaces are, how they work, and why you would use them, this article is just to help you take the first step to figuring out how to parse xml with namespaces in it.

var xml:XML = <root>
	<h:table xmlns:h="http://www.w3.org/TR/html4/">
	  <h:tr>
	    <h:td>Apples</h:td>
	    <h:td>Bananas</h:td>
	  </h:tr>
	</h:table>
 
	<f:table xmlns:f="http://www.w3schools.com/furniture">
	  <f:name>African Coffee Table</f:name>
	  <f:width>80</f:width>
	  <f:length>120</f:length>
	</f:table>
 
</root>


Read more...

Robot Arm

I was given a tour of Navy Island plywood, and got to see their army of robots!


Read more...

My Guide to Becoming a Freelancer

In February 2008, I decided to take the leap and quit my job to become a freelancer. Now that it's been a couple years, I think it would be a good time to write about the good, the bad, and things you need to know before becoming a freelancer.


Read more...

Automatic scroll on tab focus

A common requirement in a Flex application is to make the page automatically scroll to show the field that you tabbed into.
This article will show how to do this.


Read more...

Time Tracking with Google™ Spreadsheets.

Yesterday I published some software that I'm hoping people will like. I'm calling it GTime. It's an application that runs on Adobe® AIR™ and works with Google™ Spreadsheets. It's fairly self explanatory; you login to your Google account, create a new timesheet, and that timesheet will sit on Google's servers as a spreadsheet. GTime features a simple start / pause / stop timer that allows you to easily and accurately track your time (something every time tracking software should have), and it will insert that time record into the Google spreadsheet.


Read more...

Minimum dimensions for express install

Just so I don't forget it

As noted in expressinstall.as
214px by 137px


Read more...

Sending email from localhost with php

A lot of developers set up PHP on their local machine to test server side development. Here's a little trick how to be able to send email from localhost so you can test email without any difficulty.

Note: This only works when sending email to google hosted email addresses.

1. Go to your php.ini file and change SMTP = localhost to SMTP = aspmx.l.google.com and uncomment sendmail_from and put in your sending gmail address.

2. Go to cmd and type iisreset

3. In php, test it with mail("[youremail]@gmail.com", "subject", "body");


Read more...

Stratus tower defense

I just posted online a game I've been working on using Adobe's Stratus. I will probably write more later about developing with stratus and writing multi-player games, but for now, just enjoy!

http://www.multiplayer-tower-defense.com


Read more...

Creating required properties on an mxml object

In mxml, you have no access to the constructor of the component. Therefore, you have no way of requiring constructor arguments to be set.
I was thinking, it would be nice to have a way to enforce at least that certain properties get set.

So here's my solution. Feel free to improve upon it, it's just the first way I could think of to do this.
First, we add a metadata tag to all required properties of your Component.

[Required] public var requiredArgument:Object;


Read more...
Syndicate content