Just do it in Flash, and save yourself a lot of bother. At least Flash has a specification that's, you know, followed.