22 April 2005
ActionScript (or, my brain hurts)
Except I was doing this, and my movie was crashing every single time. Turns out that even if you have a variable which just contains 123456, Flash interprets it as a string, not a number. Aargh.
Apparently ActionScript MX can do strong typing, which would fix this ('var xcentre:Number=xbase). But the Ming ActionScript compiler doesn't support this. Aargh again.
I eventually hit on a solution: 'var xcentre=Math.floor(xbase)'. Yeah, I know. But it works.