Tuesday, February 19, 2008

MovieClip(root)

MovieClip(root).doStuffLikeNormal_rootInAS2

This is what makes AS3 still programmable, but I wish they wouldn’t force you to cast it to MovieClip. That’s just stupid. More and more as I program with AS3 it feels like it’s full of poor choices of syntax. I mean, why do you have to do that whole addEventListener every time that you want to make a simple button? I understand that they’re trying to centralize code, but come on. Sometimes if its just a tiny function, it’s BETTER to have it on a button isntead of clogging up the main frame.

Why did they take away var on textboxes? Why did they take away eval? Meh…

Posted by johnfn at 22:07:15 | Permalink | Comments (2)

Monday, February 4, 2008

This is just annoying me.

MovieClip.prototype.bringToTop = new function(){
    this.parent.setChildIndex(this, this.parent.numChildren-1);
}

The whole “access a mc by its parent only” thing gets to me sometimes.

Posted by johnfn at 22:37:31 | Permalink | No Comments »