Archive for the ‘Developer’ Category

AS3 Buttons

Thursday, December 6th, 2007

It’s learning Actionscript 3 time for me so I thought I’d share a few things I’ve discovered lately.

First: Buttons.

Here is an example of a custom button. There is the built in SimpleButton class but sometimes you just need to roll your own.

This assumes you have a linked MovieClip in your Library with it’s class set to TestBtn.

package {

	import flash.display.MovieClip;
	import flash.events.MouseEvent;

	public class TestBtn extends MovieClip {

		function TestBtn()
		{

			// UNLESS BUTTONMODE IS SPECIFIED AS
			// TRUE, YOU'LL GET NO HANDCURSOR
			this.buttonMode = true;

			// IF YOU WANT TO HIDE THE HANDCURSOR
			//this.useHandCursor = FALSE;

			// STOPS THE EVENTS BUBBLING TO THE OTHER
			// MOVIE CLIPS CONTAINED IN YOUR BUTTON
			this.mouseChildren = false;

			// ADD THE MOUSE 'ONCLICK' EVENT
			this.addEventListener(MouseEvent.CLICK, onClick);
		}

		private function onClick(event:MouseEvent):void
		{
			// TRACES THE NAME OF THE BUTTON CLICKED
			trace(event.target.name, 'clicked');

		}
	}
}

Kuler

Thursday, November 23rd, 2006

A couple of days ago Adobe made available Kuler.

kuler is the first creative, hosted web application from Adobe Labs designed both to stand alone and to complement Adobe® Creative Suite® 2 components.

Annoyingly Kuler is what I hoped my ColorToy might have grown into if I’d actually got around to working on it. It’s very impressive and you should go check it out. One thing though where ColorToy still has an edge is in having random color functionality. Sometimes color inspiration can evade you but you can’t beat hammering random until something magical turns up.

So in summery, Kuler is awesome but ColorToy still has that random edge.

Keyword Manager for iPhoto

Thursday, November 23rd, 2006

This evening I’ve been mostly playing with Keyword Manager. Keyword Manager an advanced keyword editor for iPhoto 6. It enables you to quickly tag up your pictures with the relevant data. I bought a license for it on Maczot for a mere £5 and it’s been well worth it.

So far this evening I’ve geographically key-worded most of my photos and tagged people who appear in them. The interface is pretty functional and you can fly though your tagging really quickly.

It’s been quite good fun looking at my old pics and tagging them up. I’ll get some more cool photos up on my Flickr account soon.

Firefox Crazy!

Monday, October 23rd, 2006

According to my stats, Firefox usage on this site has gone from 34% to 92% in just over a week. That’s madness! It’s probably due to all those cool people using stumbleupon.

Firefox 2 is also due out tomorrow (24th October).

New Work: Gasbag Smackdown

Thursday, September 7th, 2006

The Gas Bag

Dog Digital have just finished work on Gasbag Smackdown for NPower. It’s a punching game in the same vein as Hoss’s - Spank The Monkey but this time the target has an attitude.

Voice of the punchbag is Dog Digital’s very own Rob Johnson, but don’t tell his mum as he says naughty things!

If you like Gasbag Smackdown why not DIGG it?

Comment Spam begone…

Thursday, April 27th, 2006

I finally got around to implementing the Akismet comment spam plugin for Wordpress. And lo and behold it actually works! No comment spam over the last 24 hrs!

Useful Actionscript Code Snippet

Tuesday, February 21st, 2006

Filed under: If only I had known about this years ago!

_global.tr = function() {
	trace(arguments.join(" : "));
};

Example: tr(’bob’, 16, ‘fred’)

Output: bob : 16 : fred

Am-schter-dam

Sunday, November 13th, 2005

This week I’ll be mostly in Amsterdam! I’m attending Spark - Europe’s Premier Flash 8 event. Looks to be pretty interesting. On the workshop front I’ll be attending “Flash 8’s New Features” with Grant Skinner and “Video Authoring with Flash 8″. On the conference side I’ll be checking out talks by Eric Natzke (Blended Art and Science), Mario Klingemann (Beyond the Blur: The Dawn of the Bitmap Age) and my ex-colleague Hoss Gifford (There is no God).

Some work

Sunday, November 13th, 2005

Recently at work at Dog Digital, I finished work on a couple of Flash games.

Nortel Game

Nortel Network Defender is a simple game where you must use your mouse to rotate the ringed defence shields and protect the central core. Sounds cheesy, but it’s fun and been quite successful for Nortel. Full credit for the great sound goes to Dog Digital’s new lead developer Crawford Tait. Have a play and enjoy!

nortelsecurity.dogdev.co.uk/

Aquagrip Game

The second game for www.aquagrip.co.uk didn’t really have a name up till now, but after playing with a thesaurus I’ve come up with “Splash Dash”! The aim of the game is to catch as many drips as you can before the floor gets too slippery. To boost your score with time and consecutive drip catch bonuses!

www.aquagrip.co.uk/game

There’s a system for everything…

Thursday, June 2nd, 2005

I’ve been working on streamlining how I get content into my blog. Here’s the work flow.

  • I type up the blog in plain text using VoodooPad Lite
  • I then take that raw content into skEdit and then apply any HTML markup required. Links etc. I use the snippets feature to make that as easy as possible. e.g If I want to make an affiliate link to amazon.co.uk I select the copy I want to be the link then hit alt + apple + a and it wraps all my predefined copy around my selected copy and places the cursor at the bit in the HREF where I just need to paste in the ASIN code number. Pretty sweet. I’ve got snippets for making up regular links and for quickly formatting the copy.
  • Paste the resulting code into my CMS.

That’s it. Using this simple 3 point plan I can, hopefully, avoid some of the of the nastier typos that I have published in the past.