Code Monkey home page Code Monkey logo

Comments (7)

joshtynjala avatar joshtynjala commented on July 19, 2024 1

Try replacing "mainClass": "Main" with this instead:

"files": [
    "src/Main.as"
]

from asconfigc.

joshtynjala avatar joshtynjala commented on July 19, 2024 1

Interesting. I wonder why it was failing to resolve src/Main.as using mainClass. That definitely seems like a bug in vscode-as3mxml.

from asconfigc.

hydroper avatar hydroper commented on July 19, 2024

Also, here's src/Main.as:

package {
    import flash.display.Sprite;
    import com.matheusds365.phantasystar3.mainScenes.ComPresentScene;

    [SWF(width='1500', height='800', framerate='60', backgroundColor='#555')]
    public class Main extends Sprite {
        public function Main() {
            var scene:MainScene = new ComPresentScene;
            addChild(scene);
        }
    }
}

Also added reference to app.xml to the asconfig.json.

from asconfigc.

joshtynjala avatar joshtynjala commented on July 19, 2024

Try adding --verbose to see more detailed output from asconfigc.

from asconfigc.

hydroper avatar hydroper commented on July 19, 2024

Alright:

Configuration file: C:\Users\matheus-pc\Documents\adobe-air-projects\phantasy-star-3-enhanced\asconfig.json
Reading configuration file...
Parsing configuration file...
Validating configuration file...
Parsing configuration file...
SDK: C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2
Processing Adobe AIR application descriptor(s)...
Initial window content: phantasystar3.swf
Descriptor: C:\Users\matheus-pc\Documents\adobe-air-projects\phantasy-star-3-enhanced\app.xml
Compiling application...
"C:\Program Files\OpenJDK\jdk-11.0.16.8-hotspot\bin\java.exe" -Dflexcompiler="C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2" -Dflexlib="C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2\frameworks" -jar "C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2\lib\mxmlc-cli.jar" +flexlib="C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2\frameworks" +configname=air --source-path+=src --library-path+=libs --output=build/phantasystar3.swf -- C:\Users\matheus-pc\Documents\adobe-air-projects\phantasy-star-3-enhanced\src\Main.as
Loading configuration: C:\Dev\AIRSDK_Windows\AIRSDK_50.0.1.2\frameworks\air-config.xml

291640 bytes written to C:\Users\matheus-pc\Documents\adobe-air-projects\phantasy-star-3-enhanced\build\phantasystar3.swf in 10.577 seconds

It works in the command line, but the VSCode intellisense doesn't work (I think it works with SWC projects, though).

from asconfigc.

hydroper avatar hydroper commented on July 19, 2024

image

from asconfigc.

hydroper avatar hydroper commented on July 19, 2024

Solved, thanks!

from asconfigc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.