fork of http://www.flashdevelop.org/community/viewtopic.php?t=4486 for FD ver. > 4.6