Yeah, I've tried it both ways. To be honest with you I haven't done a whole lot with it in quite a while. When it comes to desktop applications I've found that JavaFX 2.0 to be much easier to develop, integrate/mavenize, and more relevant to this topic... easier to deploy!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of gMale Another Sent: Wednesday, November 30, 2011 4:07 PM To: Flex Mojos Subject: [flex-mojos] Re: compiled AIR app has no window For me, the swf that's generated also has no contents (blank window). If you're having trouble with the sign-air step and you're sure it's not related to cert location or password, then have you tried changing your packaging from swf to air? Once I did that, I was able to remove the entire <executions> section and it packages the application successfully. On Nov 30, 11:17 am, "Will Hoover" <[email protected]> wrote: > I'm pretty sure that it's related to sign-air. I can generate the swf > without it. > > > > > > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > > Behalf Of gMale Another > Sent: Wednesday, November 30, 2011 12:59 PM > To: Flex Mojos > Subject: [flex-mojos] Re: compiled AIR app has no window > > Yes. It's particularly easy using the barebones application, above. > There don't seem to be significant differences between the > configuration dumps. > > Compiling the barebones app, should be straight forward enough to just > eyeball the pom for errors. No matter how hard I look (and compare > with other examples across the web), I can't spot what's wrong with > the barebones-air POM, above. > > When I convert from spark to halo, flexmojos works perfectly. Convert > back to spark and I get an empty window... :( > What could possibly cause that behavior in such a bare bones > application? > > On Nov 30, 5:55 am, Marvin Froeder <[email protected]> wrote: > > Did you guys tried faq?http://flexmojos.sonatype.org/faq.html#9 > > > VELO > > > On Nov 30, 10:12 am, "Will Hoover" <[email protected]> wrote: > > > > Interesting... In my case I was using mx:Application and still > encountered > > > the issue :/ > > > > -----Original Message----- > > > From: [email protected] [mailto:[email protected]] > On > > > > Behalf Of gMale Another > > > Sent: Wednesday, November 30, 2011 12:24 AM > > > To: Flex Mojos > > > Subject: [flex-mojos] Re: compiled AIR app has no window > > > > Note: I get the same error when packaging with ADT. So it must be an > > > error in compiling the swf. Moreover, the swf itself is missing all > > > content when sparks components are used but has everything when halo > > > is used (same problem as the AIR app). > > > > I packaged the barebones application with the following command: > > > adt -package -storetype pkcs12 -keystore ./src/main/resources/sign.p12 > > > -storepass oursecret Main.air ./src/main/resources/descriptor.xml -C > > > target Main.swf > > > > On Nov 29, 2:43 pm, gMale Another <[email protected]> wrote: > > > > The problem has been isolated, so a solution can't be far off (I > > > > hope)! > > > > > I've created a "barebones" AIR application that exhibits the same > > > > behavior. Turns out, when I use the mx:Application tag, everything > > > > works perfectly. However, when I use s:Application, the problem > > > > occurs (a blank window with no contents). > > > > > I've tried explicitly adding the sparks-theme dependency as well as > > > > airspark (even though it's already included in the air-framework POM) > > > > and it didn't fix the problem. What am I missing here? > > > > > Here is my "barebones" application. When I change s: to mx:, > > > > everything works! However, when I use sparks components, it produces > > > > an AIR file just fine but the resulting installed application displays > > > > a "properly sized" window with a title but no contents. > > > > > (Note: if I link a CSS file and set the background color to blue, the > > > > window is successfully colored blue. It seems the problem is with > > > > Sparks)... > > > > > src/main/flex/Main.mxml: > > > > ----------------------------------- > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <s:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > > xmlns:s="library://ns.adobe.com/flex/spark"> > > > > <s:Button label="it works" top="100" /> > > > > </s:Application> > > > > ----------------------------------- > > > > > src/main/resources/descriptor.xml: > > > > ----------------------------------- > > > > <?xml version="1.0" encoding="utf-8" standalone="no"?> > > > > <application xmlns="http://ns.adobe.com/air/application/2.6"> > > > > <id>Main</id> > > > > <filename>Main</filename> > > > > <name>Main</name> > > > > <versionNumber>0.1.0</versionNumber> > > > > <initialWindow> > > > > <content>Main.swf</content> > > > > <autoOrients>false</autoOrients> > > > > <fullScreen>false</fullScreen> > > > > <visible>true</visible> > > > > </initialWindow> > > > > </application> > > > > ----------------------------------- > > > > > pom.xml > > > > ----------------------------------- > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org /maven-v4_0_0..."> > > > > <modelVersion>4.0.0</modelVersion> > > > > <groupId>com.mycompany</groupId> > > > > <artifactId>barebones-air</artifactId> > > > > <version>1.0</version> > > > > <packaging>air</packaging> > > > > <name>barebones-air</name> > > > > > <properties> > > > > <flex.sdk.version>4.5.1.21328</flex.sdk.version> > > > > <application.name>Main</application.name> > > > > <directory.resources>src/main/resources</directory.resources> > > > > <store.password>oursecret</store.password> > > > > </properties> > > > > > <build> > > > > <sourceDirectory>src/main/flex</sourceDirectory> > > > > <plugins> > > > > <plugin> > > > > > <groupId>org.sonatype.flexmojos</groupId> > > > > <artifactId>flexmojos-maven-plugin</artifactId> > > > > <version>4.0-SNAPSHOT</version> > > > > <configuration> > > > > <sourceFile>${application.name}.mxml</sourceFile> > > > > <finalName>${application.name}</finalName> > > > > <storepass>${store.password}</storepass> > > > > <descriptorTemplate>${directory.resources}/descriptor.xml</ > > > > descriptorTemplate> > > > > </configuration> > > > > <extensions>true</extensions> > > > > <dependencies> > > > > <dependency> > > > > <groupId>com.adobe.flex</groupId> > > > > <artifactId>compiler</artifactId> > > > > <version>${flex.sdk.version}</version> > > > > <type>pom</type> > > > > </dependency> > > > > </dependencies> > > > > </plugin> > > > > </plugins> > > > > </build> > > > > > <dependencies> > > > > <dependency> > > > > <groupId>com.adobe.flex.framework</groupId> > > > > <artifactId>air-framework</artifactId> > > > > <version>${flex.sdk.version}</version> > > > > <type>pom</type> > > > > </dependency> > > > > </dependencies> > > > > > <repositories> > > > > <repository> > > > > <id>central</id> > > > > <name>Artifactory</name> > > > > <url>http://ourserver/artifactory/repo</url> > > > > </repository> > > > > </repositories> > > > > <pluginRepositories> > > > > <pluginRepository> > > > > <id>flexmojos-plugin</id> > > > > <url>http://repository.sonatype.org/content/groups/flexgroup</url> > > > > <releases> > > > > <enabled>true</enabled> > > > > </releases> > > > > <snapshots> > > > > <enabled>true</enabled> > > > > </snapshots> > > > > </pluginRepository> > > > > </pluginRepositories> > > > > </project> > > > > ----------------------------------- > > > > > On Nov 29, 10:07 am, gMale Another <[email protected]> wrote: > > > > > > My issue seemed to arise after updating the runtime, as well (Note: > > > > > I'm running OS X Lion). Right now, I'm working on creating a bare- > > > > > bones project to see if it has the same issue and, if so, I will > > > > > upload THAT POM & descriptor (because our current one mainly > > > > > references a parent POM that I can't post online). > > > > > > On Nov 29, 5:17 am, "Will Hoover" <[email protected]> wrote: > > > > > > > I have also experienced this issue with flexmojos. It works fine > using > > > > > > adt... It looks like it is related to the cert signing. It first > > > occurred > > > > > > when I tried updating the AIR runtime (sorry I do not recall the > > > version off > > > > > > hand). > > > > > > > -----Original Message----- > > > > > > From: [email protected] > [mailto:[email protected]] > > > On > > > > > > > Behalf Of Marvin Froeder > > > > > > Sent: Monday, November 28, 2011 5:58 AM > > > > > > To: Flex Mojos > > > > > > Subject: [flex-mojos] Re: compiled AIR app has no window > > > > > > > Are you guys able to get your air projects building using adt? > > > > > > > I ask cause FB may add something to your compilation that you guys > are > > > > > > unaware of. > > > > > > > On Nov 28, 7:24 am, Miroslav Hrúz <[email protected]> wrote: > > > > > > > Hi, > > > > > > > > I was playing with FlexMojos to build AIR project and same thing > > > > > > > happend to me. I tried more different versions of Flex, > FlexMojos on > > > > > > > MacOS X Lion and Windows.. Same thing. > > > > > > > > There is sample hello world project. > > > > > > > > airtest > > > > > > > src > > > > > > > airtest.mxml > > > > > > > airtest-app.xml... > > read more » -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/ -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
