Posts tagged as 'Actionscript'

Physics for Flash Games

On Thursday this week, I’m doing a presentation on Physics for Flash Games at the London Flash Platform User Group. It’s a tricky presentation to plan because there’s such a wide range of knowledge and ability among the audience but I think I’ve come up with a presentation that has something for everyone. Hope to see lots of London Flash users there. There’s no membership requirement so if you’re interested just turn up. Or better still sign up on the web page because then you have a chance to win one of the prizes in the raffle.

List Loader for Actionscript 2

It happened recently that I needed to load a list of items from a text file. There was no other structure to the file except that each item in the list was on a separate line. The items were not in XML and they were not in form variables format (used by LoadVars). Here’s how it’s done…

Simple example of acceleration

While teaching my Actionscript Fundamentals course a couple of days ago one of the trainees asked me how to do a simple example of using acceleration and deceleration within an animation. Here it is…

Singletons – we’re better off without them

With the introduction of Actionscript 3 there was a lot of discussion about how to implement the singleton design pattern. This happened because Actionscript 3 doesn’t allow private or protected constructors and this prevents the most common implementation technique for singletons. But singletons are never actually needed and are rarely a good idea.

Finite State Machines for AI in Actionscript

A few months ago I said I’d post about the AI in Stick Sports Soccer. Here, at last, is the first such post looking at the code used to implement the Finite State Machines in this and other games I’ve developed.

Custom context menu with keyboard shortcuts in Flash

I was very pleased that Strictly Sudoku was Adobe’s Site of the Day last Friday. In creating the site, the aim was to make the best sudoku site on the web and this award suggests we have gone some way towards that. What follows is a description of how I implemented the custom context menu and keyboard shortcuts on that site…

Flash player update adds full-screen support

Adobe have released a beta update for the flash player on Adobe Labs. Among the new features are support for a full-screen mode on the web, so it won’t be long now before we have full-screen flash video and other content on web sites. A brief summary of using full-screen mode in Actionscript 2 follows…

previous page