Archive for the ‘Uncategorized’ Category

Android – Events the easy (AS3) way

Tuesday, June 9th, 2009

I like the EventDispatcher class from ActionScript 3 so I decided to write one for Java.
Usage

1
2
3
4
5
6
7
foo.addEventListener("MyEvent", new EventListener() {
    public void run(Event event) {
        // remove the listener if no longer needed
        event.target.removeEventlistener(event.type, this);
        // do stuff
    }
}

Now your class can either extend EventDispatcherImp or implement EventDispatcher and you’re ready to dispatch events.

Via inheritance

1
2
3
import com.wumedia.events.EventDispatcher.EventDispatcherImpl;
public class Dispatcher extends EventDispatcherImpl {
}

Via composition

1
2
3
4
5
6
import com.wumedia.events.EventDispatcher.EventDispatcherImpl;
public class Dispatcher implements EventDispatcher {
    public Dispatcher() {
        _dispatcher = new EventDispatcherImpl(this);
    }
}

(more…)

Google Wave

Sunday, May 31st, 2009

“Google Wave is a new tool for communication and collaboration on the web, coming later this year.”

but words don’t do it justice. You should watch the video for various demo of wave. I can see myself using my email, calendar and documents tools less and less… and eventually I can see wave replacing them for good. (if everybody gives up control to the all mighty google that is :) )
If there is something it doesn’t do, you can extend it by writing your own server bot or client side widget that will.

If you haven’t checked out Google Wave, you should at http://wave.google.com/

SWF file specifications

Monday, May 11th, 2009

If you’re interested in parsing or building your own SWF files.

here’s the file specification from Adobe,

http://www.adobe.com/devnet/swf/

Hello world!

Tuesday, May 5th, 2009

Welcome. I will use this space to post some experiments I do in my free time.