changed to use mx.utils.Platform calls
new class to check what platform an application is running on