Not the same - both were desktop, and running on close hardware.
Contrast this with flash - Lots of flash apps require vast amount of memory, download not fit for mobile, and most importantly clicks done with mouse. For all other cases it's fine.
Those problems have almost nothing to do with Flash and everything to do with complex desktop apps not running on mobile. It is possible to write light Flash and heavy DHTML (hello Gmail).
Contrast this with flash - Lots of flash apps require vast amount of memory, download not fit for mobile, and most importantly clicks done with mouse. For all other cases it's fine.