Recently I have been working on an AIR-based project for an AS3 language preprocessor that adds enumeration (enum) support to the language. Today I’m releasing a web-based demo of the project. It can take an enum definition, parse it and either generate an AS3 “enum” class, or report an error if mistakes have been made in the source. The resultant code can then be imported into FlashBuilder etc, allowing the use of enums, rather than lists of numeric constants, in your code. Continue reading “AS3 Enum preprocessor: progress report”
In the beginning there there was simple HTML, which sought to define documents in an abstract way, leaving the browser free to render it as it saw fit. Whilst a great idea in theory, it didn’t work in practice as designers of web sites wanted their sites to look the same on every browser, rather than be at the mercy of the browser’s rendering engine.
A while ago I wrote an article on the oddities of AS3 with regards to its lack of static inheritance
. As part of my AS4 proposals series, I started writing a proposal for introducing static inheritance to AS4. In the process of writing it, I delved deeper into this topic and found that AS3 static inheritance is a truly strange beast indeed. It can be summed up neatly (though probably confusingly) as “for a class B that inherits from a class A, public static methods of A are inherited as protected static methods (which cannot be overridden) by class B” Continue reading “AS3 static inheritance: developers beware! (revisited)”