I have the idea partially solved here:

http://board.flashkit.com/board/show...hreadid=216829

But I need a little help with the bit mentioned if anyone knows the answer?