Is it possible to create javascript application inside flash and then don't worry about browser compatiblity, as flash is cross browser itself. As many methods or properties may or may not function with some browsers, there should be a way to get around this inconsistency issue. Maybe a script that automatically finds browser-related syntax error? And even better, the script suggests an alternative method.

Thanks in advance.