Skip to content

Tasks for ActionScript and MXML in Visual Studio Code

Josh Tynjala edited this page Nov 21, 2017 · 19 revisions

The ActionScript & MXML extension for Visual Studio Code automatically provides a number of tasks to build various types of projects.

Table of Contents

Compile tasks

The following tasks compile an ActionScript project. For projects targeting Adobe AIR or Flash Player, the task will compile a SWF file only. For Apache FlexJS projects, the task will compile by generating JavaScript that can be run without a browser plug-in.

ActionScript: compile debug build

For an Adobe AIR or Flash Player project, compiles a SWF file that can communicate with the debugger. For an Apache Royale project, produces unminified JavaScript that is readable to humans.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": true
}

ActionScript: compile release build

For an Adobe AIR or Flash Player project, compiles a SWF file that can be distributed to end users. For an Apache Royale project, produces fully minified and optimized JavaScript.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false
}

Adobe AIR tasks

The following tasks package an Adobe AIR application for various platforms.

Adobe AIR: package debug desktop application (shared runtime)

Produces an .air file where the installed application will be able to communicate with the debugger.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": true,
	"air": "air"
}

Adobe AIR: package release desktop application (shared runtime)

Produces an .air file suitable for distribution to end users. To run this application, they must have the Adobe AIR shared runtime installed.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false,
	"air": "air"
}

Adobe AIR: package release macOS application (captive runtime)

Produces an .app file suitable for distribution to end users. The application is fully self-contained, and end users do not need to install Adobe AIR separately.

This task is only available on a computer running the macOS operating system. Developers cannot run this task on Windows.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false,
	"air": "mac"
}

Adobe AIR: package release Windows application (captive runtime)

Produces an .exe file suitable for distribution to end users. The application is fully self-contained, and end users do not need to install Adobe AIR separately.

This task is only available on a computer running the Windows operating system. Developers cannot run this task on macOS.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false,
	"air": "windows"
}

Adobe AIR: package debug Android application

Produces an .apk file that will be able to communicate with the debugger when the application is running on an Android device.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": true,
	"air": "android"
}

Adobe AIR: package release Android application

Produces an .apk file suitable for distribution to end users through the Google Play Store or the Amazon Appstore.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false,
	"air": "android"
}

Adobe AIR: package debug iOS application

Produces an .ipa file that will be able to communicate with the debugger when the application is running on an iOS device.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": true,
	"air": "ios"
}

Adobe AIR: package release iOS application

Produces an .ipa file suitable for distribution to end users through the iOS App Store.

Use the following notation to manually configure this task in .vscode/tasks.json:

{
	"type": "actionscript",
	"debug": false,
	"air": "ios"
}
Clone this wiki locally