Popular Posts

Recent Comments

About

I'm Thomas Viktil. I like to play with all sorts of things. And this is where I write about the things I learn while playing.


Archive for May, 2009:

iPhone dev: Remove the glossy effect from the application icon

As you probably know, the iPhone adds a nice glossy effect to your application's icon. It sure does look good, but sometimes it just doesn't suit your icon. It can be prevented by editing the Info.plist file. It's easy! Follow me. Click on one of the lines to make the little ...


AS3 Snippet #3: Remove all childs

I code snippet I tend to use quite often. And one that I tend to forget how I wrote the last time i used it. while (this.numChildren > 0) {     removeChild(this.getChildAt(0)); } Update: And when you want to remove a child as a part of an event handler, do this: event.target.parent.removeChild(event.target); Let's say you want to ...