It took me a while to get wiimotes working reliably in flash on a Mac laptop. The usual approach of using wiiFlash is just crap on Mac and just doesnt work at all.
Then I heard about osculator and how it handles wiimote input really well. You press one button and they link up instantly rather than having to retry constantly for hours like you did with wiiflash.
But, there was no code for it, so I wrote my own.
My code is pretty simple, it just parses the wiimote data and lets you access it in a nice, easy fashion. Currently, you can just access the IR data, but I'm sure I'll update it at some point with all the data.
It can handle two wiimotes at any given time too, so if you have need for this kind of stuff, have a go.