Application.application returns null.
Posted by rvollmar on June 21, 2009
Just a quick note:
If you have started using s:Application, you’ll find that mx.core.Application.application returns null. We’ve deprecated that syntax; the replacement is mx.core.FlexGlobals.topLevelApplication. To read about more backwards compatibility issues, here’s a helpful article: http://labs.adobe.com/wiki/index.php/Flex_4:Backward_Compatibility
All the best!