added support for newer major versions (12, 13, etc... following Adobe's recent version numbering announcement*) + reduced two substr() calls into one

* http://blogs.adobe.com/flashplayer/2013/11/new-version-numbering-2.html