[flash] improved xhtml check