« VeriSign open APIs | Main | Usenix papers now free »

Actionscript 3.0 Duh! moment

I’ve recently had the pleasure of writing some Actionscript 3.0 code for the Flex 3 platform.

Actionscript has some interesting properties (like the dynamic directive to create classes that allow monkey patching mid-flight..)

It also has C# style implicit getters and setters to hide functions behind properties. Not sure if it’s always a good thing, but anyway.

One error message took me ages to understand: Error: Attempted access of inaccessible method get through a reference with static type Class.

That’s what you get when you out of habit tuck a few parentheses at the end of your getter,

var a:ClassA = ClassA.get();
when it really should be
var a:ClassA = ClassA.get;

So, watch out for those habitual parentheses at the end. Severe Duh! warning for old time Java programmers.

Posted on Tuesday, March 25, 2008 at 10:47AM by Registered CommenterHans in | CommentsPost a Comment

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.