Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6900351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:32:06+00:00 2026-05-27T07:32:06+00:00

Problem When I run my air application (compiled via flexmojos), it seems empty–there is

  • 0

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

I am compiling an Adobe Air Application using Maven’s flexmojos plugin on Mac OS X: Lion. It successfully produces a SWF file and an AIR file.

  • 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

The swf file has the proper size and opens, as expected.

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

Why is my SWF file being created properly but my AIR application won’t open a window? When I build/run the application from Flash Builder, it works perfectly.

Any input/advice is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:32:07+00:00Added an answer on May 27, 2026 at 7:32 am

    Solution

    After investigating this in the FlexMojos Google group, it turns out, I needed to set the following option:

    <swfVersion>11</swfVersion>
    

    For some reason, this was defaulting to 10, which caused the problem. Add this line, everything works perfectly!

    Alternate Fix

    Alternatively, I was also able to fix the problem by loading the air-config.xml file:

    <loadConfig>${flex.sdk}/frameworks/air-config.xml</loadConfig>
    

    This file can also be found in the repository:

    ${path_to_m2_repo}/com/adobe/flex/framework/framework/${flex.sdk.version}/configs_zip/air-config.xml
    

    where flex.sdk.version=4.5.1.21328 , for example.


    Other Invisible Window Issue

    Also for the intial window to appear, you may need to adjust the descriptor values, setting visible=true:

    <initialWindow>
        <content>Main.swf</content>
        <autoOrients>false</autoOrients>
        <fullScreen>false</fullScreen>
        <visible>true</visible>
    </initialWindow>
    

    The error I was having, combined with this set to false caused the window not appear, at all, which was confusing. After setting visible=true, the window would at least show up but all spark contents were missing. Once the error was fixed, I could set visible back to false.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem: if i run this test in NUnit ,it works Board
I run into follow problem. Did I miss anything? Association.all().count() 1 Association.all().fetch(1) [Association(**{'server_url': u'server-url',
for school we are making an air application and we've run into some questions,
I'm about to write an application in either Adobe Air or Silverlight, to run
Iam working in c++ .i have an problem while run an application ,which have
Problem: to run one.py from a server. Error When I try to do it
As a beginner/intermediate developer one problem I run into as my projects get bigger
I found an odd problem when I run a simple csh script on Solaris.
NOTE: I have solved the majority of this problem but have run into a
Problem: I am looking for a way to run a test that is able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.