5 ms·
> For 95% of applications you can just distribute a single SWF file You can do the same with HTML5+CSS+JavaScript, all in a single file. You can even include i
by amelius 6y ago
> For 95% of applications you can just distribute a single SWF file
You can do the same with HTML5+CSS+JavaScript, all in a single file. You can even include images, audio and video e.g. with data urls.
- paulryanrogers 6y agoAs what, MHTML?
- hackmiester 6y agoNo, just, like, an HTML file. Put the JS in <script> elements, and the CSS in <style> elements, all within the HTML (in the <head>, or at the end, as appropriate).
- paulryanrogers 6y agoFair enough, I thought it was in reference to pages created by others.
- larsiusprime 6y agoYou certainly CAN. My point is this is not standard or even typical behavior and so you rarely see it. Likewise, you could split up a Flash file into as much spaghetti as you wanted. But most of them were single SWF files. Honestly, I think efforts like FlashPoint will have a better time archiving flash content for this reason than trying to preserve HTML5 content of today.
- amelius 6y ago> My point is this is not standard or even typical behavior and so you rarely see it. It could easily become a standard if someone writes a convenient JavaScript library or composer tool to do exactly that. My point is that the underlying platform is not the limitation.
- larsiusprime 6y agoUnderstood. My point is that whatever convenient library/composer tool that can do that doesn't exist yet (or isn't widely adopted), and it's been 10 years, and 10 years ago a bunch of people said that everything Flash was offering would be perfectly replaced in short order.
- amelius 6y agoPerhaps the "single file" feature is no longer very high on the wish-list of the average user, especially since people now tend to share stuff online rather than via physical media like in the old days; this could explain why there is no widely used library to support this use-case.
- larsiusprime 6y agoThe single file aspect isn't really a feature for the end-user, the end user just gets content they like. The single file aspect is more about the workflow for the content creator , content aggregators like flash portals, and the ecosystem that affords. Flash portals are all but dead now, but that's another story for another time.
- Jetrel 6y agoPersonally I'm genuinely surprised/saddened that nobody stepped up to make an authoring tool. Neither a proprietary company like Adobe, nor an open-source initiative. Because - the flash monopoly is basically "there for the taking". The market's demonstrated a huge amount of interest. There's a runtime that can do it (the modern web). All that's left is we just need someone to build an authoring tool, and they'll instantly win over that huge group of users who've been demonstrated to exist (not just legacy users, but tons of new folks with a similar mindset). Building an authoring tool of course is incredibly difficult, but - given the potential payoff, you'd really think someone like adobe would be all over that, if only out of fear of being disrupted. I'm just really surprised nobody's done it. I expected it 5 years ago. Hell, I'm even surprised how sluggish flash emulators have been to show up - we're finally getting what I think is the "right one" in the form of Ruffle ( https://ruffle.rs/ https://ruffle.rs/ ), but I'm surprised the older Shumway project didn't take off. Then again, maybe we simply had to wait, because I don't think anything prior to WebASM would have really been appropriate for the job. I think the best case scenario would be some sort of "commercial open-source project", like how Krita structures themselves, taking up the mantle of being a flash-like authoring tool.
- est31 6y agodata urls encode things in base64 format so bloat up the file. Also the user agent can't just seek over them, requiring it to parse the entire included base64 content. There are better ways, but sadly nothing cross platform: * https://github.com/WICG/webpackage https://github.com/WICG/webpackage * https://en.wikipedia.org/wiki/Webarchive https://en.wikipedia.org/wiki/Webarchive
- amelius 6y agoI suppose you could write a small JavaScript library that handles seeking through series of binary blobs.
- kennu 6y agoBut when you share some HTML in practice, e.g. send a HTML game exported from Godot to a friend, they will need to unzip it and install a local web server to actually play it with appropriate permissions. Whereas .swf files could be opened directly in the browser without any preparation steps. It was also possible to read metadata from .swf files (background color, canvas size, etc), which made it very simple to automatically embed Flash games on web pages with the correct layout. So there are a lot of small practical details that made .swf a very convenient format for sharing games and multimedia content.
- deleted 6y ago[deleted]
- gfxgirl 6y agoEven if you did that it wouldn't repo flash. Flash streamed the file, executing it and making it interactive to the user long before the entire file was downloaded.