Skip to content

Instantly share code, notes, and snippets.

View joshtynjala's full-sized avatar

Josh Tynjala joshtynjala

View GitHub Profile
@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"/>
@joshtynjala
joshtynjala / asconfig.json
Created October 16, 2020 19:48
asconfig.json: How to create an Apache Flex project with modules in Visual Studio Code
{
"config": "flex",
"compilerOptions": {
"source-path": "src",
"output": "bin/MyProject.swf"
},
"mainClass": "MyProject",
"modules": [
{
"file": "src/MyModule.mxml",
@joshtynjala
joshtynjala / asconfig.json
Last active September 29, 2020 15:09
asconfig.json: How to use the "extends" field to define different options for debug and release builds
{
"config": "air",
"compilerOptions": {
"source-path": "src"
},
"application": "src/MyProjectDebug-app.xml",
"mainClass": "MyProject"
}
@joshtynjala
joshtynjala / profiles.json
Created August 8, 2019 15:46
Ayu color schemes for Windows Terminal
{
"schemes" :
[
{
"background" : "#fafafa",
"black" : "#000000",
"blue" : "#3199e1",
"brightBlack" : "#686868",
"brightBlue" : "#399ee6",
"brightCyan" : "#4cbf99",
@joshtynjala
joshtynjala / tasks.json
Last active June 24, 2016 01:25
Visual Studio Code tasks.json for asjsc #NextGenAS
{
"version": "0.1.0",
"command": "asjsc",
"isShellCommand": true,
"args": ["src/Main.as"],
"showOutput": "always",
"problemMatcher":
{
"fileLocation": "absolute",
"pattern":
@joshtynjala
joshtynjala / HeaderFactory.mxml
Last active April 17, 2016 17:04
Feathers SDK leftItems in a Panel's Header
<f:Panel headerFactory="{factoryFromInstance(myHeader)}">
<fx:Declarations>
<f:Header id="myHeader">
<fx:leftItems>
<fx:Vector type="starling.display.DisplayObject">
<f:Button/>
</fx:Vector>
</fx:leftItems>
</f:Header>
</fx:Declarations>
@joshtynjala
joshtynjala / FactoryFromInstance.mxml
Created April 17, 2016 16:39
Feathers SDK factoryFromInstance()
<f:Panel headerFactory="{factoryFromInstance(myHeader)}">
<fx:Declarations>
<f:Header id="myHeader"/>
</fx:Declarations>
</f:Panel>
@joshtynjala
joshtynjala / ImageSkinExample.as
Created January 20, 2016 21:40
An example of skinning a button's states in Feathers 3.0
var skin:ImageSkin = new ImageSkin(upTexture);
skin.setTextureForState(ButtonState.DOWN, downTexture);
skin.setTextureForState(ButtonState.DISABLED, disabledTexture);
skin.scale9Grid = new Rectangle(2, 2, 1, 4);
button.defaultSkin = skin;
@joshtynjala
joshtynjala / CreateJS_RunningGrant.as
Last active March 4, 2016 01:28
ActionScript transpiled by FlexJS 0.5 RC1 using CreateJS library
package
{
import createjs.Bitmap;
import createjs.LoadQueue;
import createjs.Shape;
import createjs.Sprite;
import createjs.SpriteSheet;
import createjs.Stage;
import createjs.Ticker;
import createjs.TickerEvent;
@joshtynjala
joshtynjala / Sandbox.as
Created July 28, 2015 20:23
Root class for Feathers CreateJS experimental demo at http://joshblog.net/projects/feathers-createjs/demo/
package
{
import createjs.Event;
import createjs.Rectangle;
import createjs.Stage;
import createjs.Ticker;
import createjs.Touch;
import feathers.controls.ButtonState;
import feathers.controls.ScrollPolicy;