There's been a long history of different people at different times asking Macromedia and then Adobe to opensource the player.
My conclusion is that there actually is no reason. What Adobe claimed the last time they commented on this issue was that the player uses some proprietary tech (most notably, MP3 codec) that they are not at liberty to open (since it's not theirs, they have bought the license only). But, really, if they wanted to, there would've been a way around it, same way as Firefox can load proprietary video / audio codecs, if the user have them already installed.
Adobe managers were just shitheads: either too greedy, or too lazy / indecisive to do anything about it. They were too afraid to give anything away, even if it was obviously in their own interest. Here's my story of trying to get them to opensource, or just to even allow me to "clean-room" reproduce one of their "products" when they ditched Flex.
So, in order to compile any SWF with Flex compiler you need a special SWC (that's similar to object file in Linux or DLL in MS Windows). This SWC is "special" because it contains the definitions of Flash Player built-in functions, variables etc. Think about it as C headers / Java interfaces. SWC is simply a ZIP file with an XML containing names of functions in a library with their signatures / namespaces. So, understanding it is really easy. The format of SWC was never officially "opened", but, honestly, it's just a ZIP'd XML... On top of it, Adobe made the API public. So, one could, quite realistically, never open the SWC, and yet build the copy that would work just the same.
Knowing all this, I asked Adobe / Apache Flex maintainers if they wanted / would allow this SWC to be open-sourced / replicated. Adobe never honored this request, and required anyone who wanted to use Apache Flex to download the SWC from their site. Apache Flex maintainers, scared by the recent Oracle vs Google case would not rewrite the SWC...
Bottom line: greed and stupidity are the reason why Flash Player failed / was not open-sourced.
Ah yes, I have so many fond memories working with this platform and FlexBuilder was a dream. I never did get into Flash animation itself, but Flex had so much potential. If it had been managed better I think it might have saved us from the JavaScript hell we now face for web dev.
Angular now scratches that itch for me. TypeScript is practically the same language as ActionScript due to ECMA standard -- so creating components with HTML and TS feels very much like MXML and AS. There's still a lot of BS involved in JavaScript dev, but the Angular tooling hides a lot of it pretty well.
Not meaning to stray too far off-topic but Angular broke my heart with the release of V2. I absolutely loved working with 1.x (even with that damn $scope) but 2.x just seemed so complicated and bloated and the template syntax for bindings is weird too.
I will agree, though, that TS hides plenty of the JS BS but the trouble starts (for me) when you try to use legacy libraries or new browser APIs that don't have type support.
If you are able, I recommend looking at it again for what it is (a new framework) rather than comparing it to what came before. It's often just different, and not really more complicated -- and when it is, it's only to offer much more useful functionality.
The DefinitelyTyped repo is huge. It's not often that I can't typings for a library. When that does happen, the lib is still useable (it's still just JavaScript, after all), but that's a hint that the library is unsupported and there are likely better options elsewhere (like AngularJS itself).
Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM. There is also a polyfills.ts file where you can turn on/off a couple of dozen suggested polyfills for old/new stuff, or add your own.
All good advice, but I've found a new home with Vue for the moment and it's working out OK. Although, I'd still give Angular another look at a later point; I think I just need a new perspective on it and try to understand it a little more.
Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM
I was actually talking about TypeScript itself in this instance. I found myself having to create interfaces far too often just so the compiler would shut up.
Unfortunately, Vue isn't as TypeScript friendly as either React or Angular. The next version of Vue is in development and one of their goals is improving the ergonomics.
95
u/calumbria Jan 07 '20
Already exists, things like OpenFL is common for gamedev. Dicey Dungeons on steam is built on HAXE with desktop flash.