vscode-nextgenas编译配置

文档:https://github.com/BowlerHatLLC/vscode-nextgenas/wiki/asconfig.json

asconfig.json

{
    "config": "flex",
    "type": "app",
    "files":[
        "Main.as"
    ],
    "compilerOptions": {
        "debug": true,
        "define": [
            {
                "name": "CONFIG::debug",
                "value": true
            },
            {
                "name": "CONFIG::release",
                "value": false
            }
        ],
        "output": "main.swf",
        "source-path": ["./"],
        "strict": true,
        "default-frame-rate": 30,
        "default-size": {
            "width": 800,
            "height": 600
        },
        "swf-version": 16,
        "target-player": "11.3"
    },
    "additionalOptions": "-static-link-runtime-shared-libraries=true"
}

swf-version与target-player的关系:https://blog.zengrong.net/post/1486.html

注意:在asconfig.json上写注释会导致编译出错

原文地址:https://www.cnblogs.com/kingBook/p/7814689.html