Handle mouse event button ID on Flash and HTML5