Posts filed under 'Actionscript 2'

Events in Actionscript 2

I documented my technique for implementing event dispatching over on the Flash Game Code site. I’ve been using this method for a couple of years now and I think it’s a lot better than EventDispatcher or ASBroadcaster. Take a look if your interested. Comments are welcome below. The source code is available for free on flashgamecode.net under the MIT licence.

Software Best Practices

It’s great to see that Construx Software have started blogging. For those that don’t know, Construx was founded by Steve McConnell, author of a number of books including the excellent “Code Complete” and “Professional Software Development”.

The new blogs cover a range of information related to software development and project management. If you’re a developer, project manager or even CEO and you’re interested in improving the way you develop software there’s a number of gems on these blogs already. So go take a look.

Physics for Flash Games: Slides

It was great to see so many people at my presentation yesterday at LFPUG. The presentation seemed to go down very well and I had a great evening. Here’s the slides from my presentation. If you weren’t there, they may not make a lot of sense without my talking over the top of them, but I suspect lots of people who were there want to look at the code again.

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…

Protecting a swf

In my training courses I often get asked about protecting swf movies. There’s two sides to this - one is encrypting the code to make it hard for others to decompile and use, and the other is limiting where the swf can be used from so that users can’t simply place your swf on their website.

There are a number of commercial and free obfuscating and encryption tools to help protect your code so I’m not going to say any more about them (maybe in a later post). Here’s a few ideas for how to limit where the swf movie may be used.

Free flash preloader components

Some time ago I created a set of components for creating preloaders. They are designed so that the graphics, style and text feedback can all be modified by the user without writing any code.

I used to charge a small fee for them but they’re getting a bit long in the tooth now. Since updating them doesn’t fit with my current plans I’m making them available for free so please help yourself…

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…

previous posts