Problem
When I run my air application (compiled via flexmojos), it seems "empty"--there is no window at all. It works perfectly when compiled from Flash Builder.
Background
我正在用Maven s flexmojos plugin on MacOS X:狮子汇编Adobe Air Application。 它成功地制作了SWF文档和AIR档案。
When I double-click the SWF file, it opens just fine
(and crashes with an error you d expect--since it s not running in the AIR environment)When I double-click the AIR file, no window opens!
(I see my application name in the Mac menu bar but no application window and no errors)
When I look under /Applications/MyApplication.app/Contents/Resources
I see the following files:
META-INF MyAppMainAir.swf
MyAppMainAir.css mimetype
file夫的档案有适当的大小和开放,如预期。
<>POM snippet
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<configuration>
<flexBuilderCompatibility>true</flexBuilderCompatibility>
<sourceFile>${application.name}.mxml</sourceFile>
<finalName>${application.name}</finalName>
<descriptorTemplate>${project.build.sourceDirectory}/${application.name}-app.xml</descriptorTemplate>
<storepass>${keystore.password}</storepass>
<includeStylesheets>
<stlyesheet>
<name>${application.name}.css</name>
<path>${application.name}.css</path>
</stlyesheet>
</includeStylesheets>
<licenses>
<flexbuilder3>${flex.license}</flexbuilder3>
</licenses>
<targetPlayer>10.2.0</targetPlayer>
</configuration>
<executions>
<execution>
<goals>
<goal>sign-air</goal>
</goals>
</execution>
</executions>
</plugin>
Question
我的SWF档案为什么得到适当建立,但我的AIR申请却获得一个窗口。 当我建立/管理闪电公司的申请时,它完全运作。
赞赏任何投入/建议。