For starters, dropping the 240VAC down to 12VDC first and then controlling the 12VDC for dimming would be my first instinct. I can imagine any wave control you do on the 240VAC being messed up by passing it through a step-down transformer or whatever. Jinx