Ok now this is strange ... I added an example to the flexmojos examples.
Unfortunately at first my totally stripped down demo compiled without problems.
So I added all of my config options to flexmojos and got the same error. By
taking away one option at a time I found out that I get that error as soon as I
set to keep the generated ActionScript ... any Idea why?
If I comment in the option to keep the generated actionscript, I get this:
INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:compile-swf
(default-compile-swf) @ simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
Writing configuration dump to
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT-configs.xml
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/SimpleAirMobileApplication.mxml(22):
Error: Typ wurde nicht gefunden oder war keine Kompilierungszeit-Konstante:
ViewNavigatorBase.
xmlns:s="library://ns.adobe.com/flex/spark">
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mobile ............................................. SUCCESS [ 0.106 s]
[INFO] simple-air ......................................... FAILURE [ 2.734 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
If I comment it out, I get this:
[INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:compile-swf
(default-compile-swf) @ simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
Writing configuration dump to
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT-configs.xml
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT.swf
(2513851 bytes)
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @
simple-air ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/src/test/resources
[INFO]
[INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:test-compile
(default-test-compile) @ simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] Skipping compiler, test source path doesn't exist.
[INFO]
[INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:test-run (default-test-run) @
simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] Skipping test run. Runner not found:
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/test-classes
[INFO]
[INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:sign-air (default-sign-air) @
simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] completed 0 of 100
[INFO] completed 100 of 100
[INFO] AIR package created:
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT.air
[INFO]
[INFO] --- flexmojos-maven-plugin:7.1.0-SNAPSHOT:sign-air (default) @
simple-air ---
[INFO] Flexmojos 7.1.0-SNAPSHOT
[INFO] GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] completed 0 of 100
[INFO] completed 100 of 100
[INFO] AIR package created:
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT.air
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ simple-air ---
[INFO] Installing
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT.air
to
/Users/christoferdutz/Maven-Repository/org/apache/flex/examples/mobile/simple-air/1.0.0-SNAPSHOT/simple-air-1.0.0-SNAPSHOT.air
[INFO] Installing
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/pom.xml
to
/Users/christoferdutz/Maven-Repository/org/apache/flex/examples/mobile/simple-air/1.0.0-SNAPSHOT/simple-air-1.0.0-SNAPSHOT.pom
[INFO] Installing
/Users/christoferdutz/Projects/Apache/Flex/flex-utilities/maven-flex-plugin/examples/mobile/simple-air/target/simple-air-1.0.0-SNAPSHOT.swf
to
/Users/christoferdutz/Maven-Repository/org/apache/flex/examples/mobile/simple-air/1.0.0-SNAPSHOT/simple-air-1.0.0-SNAPSHOT.swf
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mobile ............................................. SUCCESS [ 0.110 s]
[INFO] simple-air ......................................... SUCCESS [ 18.229 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
You can have a look at the code here:
https://github.com/apache/flex-utilities/tree/develop/maven-flex-plugin/examples/mobile/simple-air
Chris
________________________________________
Von: Alex Harui <[email protected]>
Gesendet: Dienstag, 19. Mai 2015 20:51
An: [email protected]
Betreff: Re: AW: AW: Problems with TabbedViewNavigatorApplication?
What is a code sample and what is the error?
On 5/19/15, 11:49 AM, "Christofer Dutz" <[email protected]> wrote:
>Hi Alex,
>
>I'm currently using Air 14.0 so that shouldn't be too old.
>I always assumed that I need the playerglobal OR the airglobal not both
>and the Flexmojos code seems to support that assumption. The strange
>thing is that even if I add a local variable of that type, still the
>compiler is complaining about it missing that class.
>
>Chris
>
>-----Ursprüngliche Nachricht-----
>Von: Alex Harui [mailto:[email protected]]
>Gesendet: Dienstag, 19. Mai 2015 17:27
>An: [email protected]
>Betreff: Re: AW: Problems with TabbedViewNavigatorApplication?
>
>Hmm, could be, but I’d be a bit surprised. I’ve never bothered to dump
>the contents of an airglobal. I just looked in an AIR SDK and see that a
>playerglobal.swc is bundled. But when I look at the library paths for
>compiling an AIR app, I don’t see any references to playerglobal. Could
>you have picked up a very old airglobal (before there was Vector) or what
>actually is the problem with Vectors you are seeing?
>
>-Alex
>
>
>On 5/19/15, 7:28 AM, "Christofer Dutz" <[email protected]> wrote:
>
>>Ok so I found out that I seem to have to add playerglobal to my build.
>>I was assuming that for air an airglobal would be enough, but there
>>seem to be problems with Vectors. Don't quite know what's going wrong.
>>
>>In my flexmojos build it turned out that if I add the playerglobal
>>after the airglobal, the playerglobal has no effect, but if I add the
>>playerglobal in front of the airglobal, the classes of the airglobal
>>are missing ... think I have to do a little digging here ... Any Ideas?
>>
>>Chris
>>
>>________________________________________
>>Von: Christofer Dutz <[email protected]>
>>Gesendet: Dienstag, 19. Mai 2015 15:32
>>An: [email protected]
>>Betreff: Problems with TabbedViewNavigatorApplication?
>>
>>Hi,
>>
>>
>>I'm currently whipping up a little Mobile application mainly testing
>>the new maven fdks + new Flexmojos + new whatsoever :-)
>>
>>
>>Now I wanted to use a TabbedViewNavigatorApplication as base of my
>>application. But I seem to be getting:
>>
>>
>> Error: Typ wurde nicht gefunden oder war keine
>>Kompilierungszeit-Konstante: ViewNavigatorBase.?
>>
>>
>>Well in english this must be something like:
>>
>>
>> Error: Type was not found or wasn't a compile-time-constant:
>>ViewNavigatorBase
>>
>>
>>Well the ViewNavigatorBase class is there and I see the library being
>>referenced in the config.xml
>>
>>I am using the mobile theme, if this could be causing the problem.
>>
>>
>>Is there a problem in my FDKs?
>>
>>
>>Chris
>