GradleFX for non flex project

Viktor Nordling's Avatar

Viktor Nordling

27 Feb, 2012 01:35 PM

I have a "pure actionscript" project, without flex. When I try to compile the project, I get:

The file Main.mxml couldn't be found in directories [src/main/actionscript]

There are mentions about two different compilers in the documentation, compc and flexc, but I can't seem to figure out how to switch to compc.

Ideas?

Thanks!

  1. Support Staff 1 Posted by Yennick Trevels on 27 Feb, 2012 01:42 PM

    Yennick Trevels's Avatar

    I guess you're using type = "swf", which by convention requires a main class with name "Main.mxml" in the source directory, you can change this convention value by overriding the mainClass property, like this:
    mainClass = 'Main.as';

  2. 2 Posted by Viktor Nordling on 27 Feb, 2012 01:50 PM

    Viktor Nordling's Avatar

    Thanks for quick reply, that worked!

  3. Yennick Trevels closed this discussion on 27 Feb, 2012 01:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac