Updated to work with the latest version of OpenFL (1.2.2).