Skip to content

Instantly share code, notes, and snippets.

View joshtynjala's full-sized avatar

Josh Tynjala joshtynjala

View GitHub Profile
@joshtynjala
joshtynjala / ColorOffsetStyle.hx
Last active April 23, 2025 17:13
A MeshStyle for Starling 2 that allows to add an offset to each color channel of a mesh, as described in the Starling Manual for OpenFL.
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
@joshtynjala
joshtynjala / ColorOffsetFilter.hx
Last active April 23, 2025 17:13
The revised ColorOffsetFilter of the tutorial from the Starling Manual for OpenFL; now with fixed PMA handling.
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================

These are the last known good official Adobe URLs that allow you to download the Adobe Flash Player 32.0 standalone projector content debugger for Windows, macOS, and Linux. These are executables that allow developers to open .swf files outside of a web browser, and they can connect to a debugger in an IDE, like Adobe Flash Builder, IntelliJ IDEA, or the SWF Debugger for Visual Studio Code.

Note: As of April 2025, these URLs were still active, but it is best to assume that they could be removed by Adobe at any time, without notice. If you anticipate needing a standalone Adobe Flash Player executable in the future, you should download and keep a backup copy somewhere safe. If these URLs are removed, you may need to find a way to run your SWF using Adobe AIR from HARMAN or Ruffle instead.

@joshtynjala
joshtynjala / Adobe Flex SDK Zip Downloads.md
Last active January 18, 2025 20:35
How to download Adobe Flex SDK

These are last known good working URLs on adobe.com to .zip downloads of the Adobe Flex SDK from version 2.0 Hotfix 1, and 3.0.0 to 4.6.0.

Note: As of June 2024, these URLs were still active, but it is best to assume that they could be removed by Adobe at any time, without notice. If you anticipate needing any of these versions of the Adobe Flex SDK in the future, you should download and keep a backup copy somewhere safe. If these URLs are removed, you may be able to use the Apache Flex SDK instead. To download the Apache Flex SDK, visit https://flex.apache.org/download-binaries.html

@joshtynjala
joshtynjala / ArchivedFlashDocs.md
Last active November 21, 2024 06:16
Adobe Flash Documentation Markdown Archive

Adobe Flash Documentation Markdown Archive

Links to archives of official documentation for ActionScript 3.0, Adobe Flash Player, Adobe AIR, and Adobe Flex — converted to Markdown format. Adobe Systems Incorporated released this content under a Creative Commons BY-NC-SA 3.0 license, which makes it possible for this archive to exist.

ActionScript and Flash

@joshtynjala
joshtynjala / normalize-help-adobe-com-html.js
Last active January 16, 2025 23:55
A script to run in a web browser's Javascript console to normalize the HTML in old HTML documentation from help.adobe.com. The resulting simplified HTML content can be converted more easily into other formats, like Markdown, using tools like pandoc. The help.adobe.com content is Creative Commons licensed.
document.body.querySelector("#ahpod")?.remove();
document.body.querySelector("#mboxScriptContainer")?.remove();
let h1 = document.querySelector("#content_wrapper h1:first-of-type");
let article = document.querySelector(
"table#inner_content_table td:first-of-type"
);
if (!article) {
// some pages seem to have a different table id, for some reason
article = document.querySelector("table#page_content_table td:first-of-type");
}
@joshtynjala
joshtynjala / tasks.json
Created February 2, 2024 17:53
Use dependsOn in tasks.json to build a library project SWC before an app project SWF in vscode-as3mxml
{
"version": "2.0.0",
"tasks": [
{
"type": "actionscript",
"debug": true,
"asconfig": "LibraryProject/asconfig.json",
"group": "build",
"problemMatcher": [],
"label": "ActionScript: compile debug - LibraryProject/asconfig.json",
@joshtynjala
joshtynjala / FeathersUIWrapper.as
Last active February 8, 2022 18:42
FeathersUIWrapper for Apache Flex
////////////////////////////////////////////////////////////////////////////////
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@joshtynjala
joshtynjala / asconfig.json
Created February 5, 2021 19:12
asconfig.json: How to create an ActionScript/MXML project with workers in Visual Studio Code
{
"config": "flex",
"compilerOptions": {
"source-path": "src",
"output": "bin/MyProject.swf"
},
"mainClass": "MyProject",
"workers": [
{
"file": "src/MyWorker.as",
@joshtynjala
joshtynjala / 1) macOS sign Adobe AIR app
Last active April 9, 2025 18:44
Ant scripts for macOS sign and notarize
<!-- how to sign an Adobe AIR app with captive runtime on macOS for distribution outside of App Store (Developer ID application) -->
<!-- notice that you need to sign multiple files inside the .app bundle, along with the .app bundle itself -->
<exec executable="/usr/bin/codesign" failonerror="true">
<arg value="-f"/>
<arg value="-v"/>
<arg value="-s"/>
<arg value="Developer ID Application: My Company"/>
<arg value="--deep"/>
<arg value="--options"/>
<arg value="runtime"/>