While it is useful for web apps, JavaScript in Mobile Safari is not sufficient for creating the vast majority of standalone applications.
Flash, while hardly a world-class systems programming language, is a step beyond JavaScript in several respects.
Most importantly, it is more consistently cross-platform compatible, meaning that I could actually take advantage of preexisting Flash applets on the iPhone, whereas oftimes when designing a JS app one must consider a far wider range of discrepancies between platforms. In other words, given a randomly-selected JS applet and a randomly-selected Flash applet from all available to me, the probability is greater that the Flash applet will be correct in an officially-supported Flash VM than that the JS applet will be correct in Mobile Safari.
Show me an instance of a modern browser running javascript that doesn't run correctly. I've written a lot of javascript and the only thing that trips me up is the css. Javascript itself works fine on almost all platforms. (Some quirkiness on IE6).
While it is useful for web apps, JavaScript in Mobile Safari is not sufficient for creating the vast majority of standalone applications.
Flash, while hardly a world-class systems programming language, is a step beyond JavaScript in several respects.
Most importantly, it is more consistently cross-platform compatible, meaning that I could actually take advantage of preexisting Flash applets on the iPhone, whereas oftimes when designing a JS app one must consider a far wider range of discrepancies between platforms. In other words, given a randomly-selected JS applet and a randomly-selected Flash applet from all available to me, the probability is greater that the Flash applet will be correct in an officially-supported Flash VM than that the JS applet will be correct in Mobile Safari.