Problem explained in the .cap: http://dl.dropbox.com/u/4322334/test2.cap
Develop games in your browser. Powerful, performant & highly capable.
I was messing around with this because it seems quite intuitive.
I *think* I fixed your problem:
<img src="http://i37.tinypic.com/1euec9.jpg">
Thanks, i found another way around it, but yours is certainly better.