-
-
Notifications
You must be signed in to change notification settings - Fork 41
Create a new ActionScript project in Visual Studio Code that targets Adobe Flash Player
🚨 Attention: Web browsers no longer support the Adobe Flash Player plugin, and Adobe has discontinued development of Flash Player. For more details, see Adobe Flash Player End Of Life. The document below is kept for educational purposes.
Learn to set up a project in Visual Studio Code to create an application that runs on Adobe Flash Player.
-
Install the ActionScript & MXML extension for Visual Studio Code.
-
Create a new directory for your project, and open it in Visual Studio Code.
To open a directory, select the File menu → Open... or click Open Folder button in the Explorer pane.
-
Create a file named asconfig.json in the root directory of your project, and add the following content:
{ "compilerOptions": { "source-path": [ "src" ], "output": "bin/Main.swf" }, "mainClass": "Main" }
-
Create directory named src.
-
Inside src, create a file named Main.as, and add the following code:
package { import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main() { var tf:TextField = new TextField(); tf.text = "Hello World"; addChild(tf); } } }
- Adobe AIR (Mobile)
- Adobe AIR (Desktop)
- Adobe Flash Player
- Apache Royale
- HTML and JS (no framework)
- Node.js
- Feathers SDK
- Adobe Animate
- Classic Flex SDK
- Library (SWC)
- Royale Library (SWC)