I have a very strange problem. I have a relatively simple SWF that's
using a flexmojos config that's undoubtedly a few months out of date,
but is successfully used in many of our other projects.
The swf builds, but when it is run, several UI things don't work -
such as rounded edges on some spark panels, and chromeColor of a
datagrid. I assume there's some option I've missed or screwed up, but
I'm at a loss to find it.
Reducing the project down to the bare minimum, I've attached the
pom.xml that is used for the build. The mxml itself has just a
datagrid, with the following style declaration:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
global
{
chrome-color: #DB9D09;
}
.datagridHeader { color:#365e78; font-size:12; font-
family:Arial,"_sans"; font-weight:bold;
}
mx|DataGrid { alternating-item-colors: #000000, #222222;
header-style-name:"datagridHeader";
chrome-color:#41b2ff;
}
</fx:Style>
This works fine in flex builder itself, but not in my compiled swf.
Any pointers to what I'm missing gratefully received!
<?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.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>smartboard</groupId>
<artifactId>smartboard-ui</artifactId>
<version>1.0</version>
<packaging>swf</packaging>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy-themes-for-flex4</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeTypes>swc,css</includeTypes>
<outputDirectory>$
{project.build.directory}/themes</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
<includeGroupIds>com.adobe.flex.framework</
includeGroupIds>
<includeArtifactIds>halo,spark</
includeArtifactIds>
<includeClassifiers>theme</
includeClassifiers>
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</
groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.8</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
</dependencies>
<configuration>
<locales>
<locale>en_US</locale>
</locales>
<mergeResourceBundle>true</mergeResourceBundle>
<resourceBundlePath>${basedir}/src/main/flex/
locale/{locale}</resourceBundlePath>
<rslUrls>
<url>rsl/{artifactId}-{version}.{extension}</
url>
</rslUrls>
<themes>
<theme>${project.build.directory}/themes/spark-
theme.css</theme>
<theme>${project.build.directory}/themes/halo-
theme.swc</theme>
</themes>
<generateHtmlWrapper>true</generateHtmlWrapper>
<configurationReport>true</configurationReport>
<keepAllTypeSelectors>true</keepAllTypeSelectors>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>halo</artifactId>
<version>4.1.0.16076</version>
<classifier>theme</classifier>
<type>swc</type>
<scope>theme</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<version>4.1.0.16076</version>
<classifier>theme</classifier>
<type>css</type>
<scope>theme</scope>
</dependency>
<!-- flex, standard -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>0.90</version>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
--
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/