Cheers!
Yeah, it's a bug of OpenFL (the framework I use) - they don't support mouse lock on the html5 platform. Maybe they have fixed this already, I'll check it.