.AS

AS File

ActionScript Source File
Ask a question
QUICK ANSWER

An AS file is plain-text ActionScript source code - the programming language behind Adobe Flash and Flex apps. Any text editor opens it. It is not runnable on its own; it must be compiled into a .swf. With Flash Player end-of-life in December 2020, most AS files today are legacy source.

Developer: Adobe Systems (originally Macromedia); language standardized on ECMAScript Category: Developer Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jul 12, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the AS file format?

.as files are associated with the ActionScript programming language, developed originally by Macromedia and later maintained by Adobe Systems.

Files with the .as extension store source code for Flash and Flex applications. An .as file can store instructions and function definitions, as well as variables and references to external or system resources (including system libraries). The source code must be compiled by Adobe Animate, the Apache Flex SDK, or Apache Royale into AVM bytecode embedded inside a .swf file that the Flash Player or AIR runtime executes; opening an .as file directly only reveals the human-readable code.

ActionScript is an object-oriented programming language built on the ECMAScript standard (the same specification underlying JavaScript). ActionScript was primarily used for developing and managing animations, banners, and interactive visual content on websites. ActionScript 3.0, released in 2006 with Flash Player 9, introduced a strict class-based model, a redesigned virtual machine (AVM2), and formal package/import syntax; an AS3 .as file typically begins with a package { } block containing import statements and a public class definition. ActionScript is a full-featured language capable of powering fully functional, interactive, and visually rich web applications, web-based games, forms, and advanced menus.

Adobe Flash reached end-of-life in December 2020, and major browsers removed Flash Player support. New interactive web work now favors JavaScript and TypeScript. The ActionScript language itself survives through the open-source Apache Royale project, which compiles .as and .mxml source files into JavaScript-based output that runs without Flash.

.as files store their content in plain-text format (UTF-8 or ASCII) and can be opened and edited using any text editor. However, it is recommended that .as files be edited with a dedicated tool such as Visual Studio Code (with an ActionScript extension) or Sublime Text, to take advantage of automatic keyword highlighting, syntax error detection, and code completion.

Security & safety

RISK: LOW

A .as file is plain-text source code and cannot run on its own, so simply opening it in an editor is safe. The caution is for developers: ActionScript code you compile and run can perform network calls, file access (within the Flash sandbox) and load other assets, so review untrusted .as before compiling and running it - just as with any third-party source code. Beware "free ActionScript decompiler" sites bundling adware; use reputable tools (JPEXS) when extracting AS from a .swf.

Format details

in a nutshell
FULL NAMEActionScript Source Fileaka Adobe Flash ActionScript document, ActionScript class file
DEVELOPERAdobe Systems (originally Macromedia); language standardized on ECMAScriptsince 1998 (ActionScript 1.0 in Flash 4); ActionScript 3.0 in 2006 (Flash 9/Flex 2)
MIME TYPEtext/plain
TYPEPlain-text source-code file (ActionScript programming language)
STANDARDOpen · royalty-free
This extension is also used by…
  • Applesoft BASIC program - On Apple II emulators, .as can denote an Applesoft BASIC source/listing - unrelated to ActionScript; open in the emulator or a text editor.
  • ASCII text / generic source - Some tools use .as for generic ASCII data or assembly source; content is plain text identifiable by inspection.

Programs that open AS files

Windows4 apps
Sublime Text Paid Open the .as for editing with ActionScript syntax highlighting.
Notepad Open-source Open the .as as text with syntax highlighting - quick way to read the code.
Visual Studio Code Open-source Open the .as to read/edit; install an ActionScript extension for syntax highlighting. The modern free choice.
Apache Royale / Flex SDK (to compile) Open-source Use the Royale/Flex compiler to actually build ActionScript into runnable output (SWF or HTML/JS) - editors only view/edit; this compiles.
macOS2 apps
Visual Studio Code Open-source Open and edit the .as with an ActionScript extension; the practical cross-platform editor.
Sublime Text / TextMate Paid Open the .as as a text/source file for reading and editing.
Linux2 apps
Visual Studio Code Open-source Open/edit the .as; add an ActionScript extension for highlighting.
Any text editor (gedit, Kate, vim) Open-source Open the .as as plain text - it is human-readable source code.

Technical details

deep spec
Language paradigmObject-oriented, event-driven; class-based with single class inheritance and multiple interface support (ActionScript 3.0)
File encodingUTF-8 or ASCII plain text; no byte-order mark required
MIME type`text/plain` (primary); also `application/x-actionscript` and `text/x-actionscript`
File signatureNone - plain text; AS3 files identified by opening `package { }` declaration and `public class` keyword, not a byte signature
Target virtual machineActionScript 1 and 2 target AVM1; ActionScript 3 targets AVM2; the two VMs are bytecode-incompatible
Compilation outputCompiled to AVM bytecode embedded inside a `.swf` container; the `.as` file itself is not directly executable
AS3 file structureBegins with `package { }` block, followed by `import` statements and a `public class` definition containing methods and properties
Typical file size1 KB - 200 KB per class file; large projects contain many individual `.as` source files
Build toolchainAdobe Animate (formerly Flash Professional), Apache Flex SDK (`mxmlc` compiler), Apache Royale compiler (`asc2`)
Related compiled artifacts`.swf` (deployed application), `.swc` (compiled component library), `.abc` (raw AVM2 bytecode)
Platform supportCross-platform source file; Flex and Royale SDKs compile on Windows, macOS, and Linux
Post-Flash statusAdobe Flash Player reached end-of-life December 2020; ActionScript 3 continues via Apache Royale targeting HTML5/JavaScript output
ECMAScript conformanceActionScript 3.0 aligns with the ECMAScript 4 draft; shares syntax with JavaScript but adds static typing and a formal `class` keyword
Base classAll AS3 classes implicitly extend `Object`; display-list objects extend `DisplayObject` within the `flash.display` package
Released1998 (ActionScript 1.0 in Flash 4); ActionScript 3.0 in 2006 (Flash 9/Flex 2)
Latest versionActionScript 3.0 (2006); maintained today via the Apache Royale / Apache Flex SDK
Open standardYes · royalty-free
Specificationen.wikipedia.org

AS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with AS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about AS files.

Frequently asked questions

How do I open an AS file?
Open it in any text or code editor - VS Code, Notepad++, or Sublime Text - since .as is plain-text ActionScript source. For syntax highlighting, add an ActionScript extension. To actually run it, you compile it into a .swf.
Is an AS file a program I can run?
No. ActionScript .as files are source code, not executables. They must be compiled (by Apache Royale/Flex or Adobe Animate) into a .swf to run. Opening the .as just shows the code.
What is the difference between AS, FLA and SWF?
.as is ActionScript source code; .fla is the editable Flash/Animate design project; .swf is the compiled, playable output. The .as and .fla are what developers edit; the .swf is what users run (now via Ruffle).
Is ActionScript dead now that Flash is gone?
Flash Player's end-of-life (Dec 2020) ended ActionScript in browsers, but the language survives through Apache Flex and Apache Royale, which compile ActionScript/MXML to HTML/JavaScript. Most new work uses JavaScript/TypeScript instead.
Can I convert ActionScript to JavaScript?
To a degree - both descend from ECMAScript. Apache Royale can cross-compile ActionScript/MXML projects to HTML/JS, and hand-porting is common. It's a migration effort, not a one-click file conversion.
How do I compile an AS file into a SWF?
Use the Apache Royale or Apache Flex SDK compiler, or open the parent project in Adobe Animate and publish. A single .as usually belongs to a larger project, so you compile the project, not just the one file.

References

1Wikipedia - ActionScripten.wikipedia.org
2Apache Royale (modern ActionScript/MXML SDK)royale.apache.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.SB3Scratch 3.0 Project File

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z