Link: Value Object Class generator for ActionScript 3

A bit specialist perhaps, and the need for such a tool might become redundant if the Flash Builder hype is to be believed, but I found this quite useful for speeding up the process of writing a value-object class in AS3.

http://projects.stroep.nl/ValueObjectGenerator/

What is a value object anyway?

For the uninitiated, a value object class is essentially a class with very little or no application logic inside it.

Instead of being a file that actually does something, it’s more of a class for just storing data.  What makes it special is that AS3 classes are not all dynamic, so you have to plan what data you need to store and how you’ll store it; and you can achieve a vast majority of that with value object classes.

If you’re coming from an AS2 or Flash IDE background you might think it’s a bit unnecessary or even frustrating, but when you plug value object classes into a development environment like Flex Builder you see where it comes in useful, when it can actually gives you useful autocomplete suggestions, and warns you if you’re passing the wrong type of data into your classes.

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

2 Responses to “Link: Value Object Class generator for ActionScript 3”

  1. Mark 26th March, 2010 at 12:07 pm # Reply

    Thanks for sharing :)

  2. Keith H 27th March, 2010 at 5:04 pm # Reply

    I think it is useful. Many times I use a plain Object to store a small group of values , to later find out that that group of values is too large and complicated to remember its rules. So the Object needs to be class…a Value Object that the development environment can read better. As a class I, myself can even read it better after coming back to code I haven’t touched in 3 months.

Leave a Reply

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information relevant to your comment.