do you get the error if you run the swf file in the target directory
from the command line?

I have created a tiny project just with pom.xml and Example.mxml and
it works
with sdk 4.1.0.16076 but not with 4.5.1.21328.

here is the 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.0
http://maven.apache.org/maven-v4_0_0.xsd";>

 <!--
******************************************************************** --
>
 <!-- module -->

 <modelVersion>4.0.0</modelVersion>
 <groupId>org.nobody</groupId>
 <artifactId>example</artifactId>
 <packaging>swf</packaging>
 <version>1.0</version>
 <name>${project.artifactId}</name>

 <!--
******************************************************************** --
>
 <!-- build -->

 <build>
  <finalName>${project.artifactId}</finalName>
  <sourceDirectory>${basedir}/src/main/flex</sourceDirectory>

  <plugins>

    <!--
******************************************************************** --
>
    <!-- flexmojo plugin -->

    <plugin>
     <groupId>org.sonatype.flexmojos</groupId>
     <artifactId>flexmojos-maven-plugin</artifactId>
     <dependencies>
      <dependency>
       <groupId>com.adobe.flex</groupId>
       <artifactId>compiler</artifactId>
       <version>${flex.version}</version>
       <type>pom</type>
      </dependency>
     </dependencies>
     <version>${flexmojos.version}</version>
     <extensions>true</extensions>
     <executions>
      <execution>
       <id>compile-swf</id>
       <goals>
        <goal>compile-swf</goal>
       </goals>
       <configuration>
        <sourceFile>Example.mxml</sourceFile>
        <keepGeneratedActionscript>false</keepGeneratedActionscript>
        <contextRoot>/</contextRoot>
        <locales>
         <locale>en_US</locale>
        </locales>
       </configuration>
      </execution>
     </executions>
    </plugin>

  </plugins>

 </build>

 <!--
******************************************************************** --
>

 <properties>

  <!--<flashplayer.version>10.0</flashplayer.version>
  <flex.version>4.1.0.16076</flex.version>-->
  <flashplayer.version>10.2</flashplayer.version>
  <flex.version>4.5.1.21328</flex.version>
  <flexmojos.version>4.0-RC2</flexmojos.version>

 </properties>

 <!--
******************************************************************** --
>
 <!-- dependencies -->

 <dependencies>

  <dependency>
    <groupId>com.adobe.flex.framework</groupId>
    <artifactId>flex-framework</artifactId>
    <version>${flex.version}</version>
    <type>pom</type>
    <exclusions>
     <exclusion>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>playerglobal</artifactId>
     </exclusion>
    </exclusions>
   </dependency>
   <dependency>
    <groupId>com.adobe.flex.framework</groupId>
    <artifactId>playerglobal</artifactId>
    <version>${flex.version}</version>
    <classifier>${flashplayer.version}</classifier>
    <type>swc</type>
  </dependency>

 </dependencies>

 <!--
******************************************************************** --
>

</project>

and here is src/main/flex/Example.xml:

<?xml version="1.0" encoding="utf-8"?>

<s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009";
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">

 <s:layout>
  <s:VerticalLayout/>
 </s:layout>

 <mx:Label text="Hello World!"/>

</s:Application>


James

On Oct 26, 12:17 pm, Eli <[email protected]> wrote:
> Hi Guys,
>
> I have a problem with Flex 4.5.1.21328 too.
>
> I am using flexmojos 4.0-RC2, as it does not have the goal
> flexmojos:flashbuilder, so I am using "mvn
> org.sonatype.flexmojos:flexmojos-maven-plugin:3.9:flashbuilder",
> everything compiles ok but when I run I get the error
>
> "VerifyError: Error #1014 Class Not Found Exception
> mx.core.UIComponent".
>
> My flexmojos configuration in the pom.xml file is:
>
>         <plugin>
>         <groupId>org.sonatype.flexmojos</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>4.0-RC2</version>
>         <extensions>true</extensions>
>                 <dependencies>
>                         <dependency>
>                                 <groupId>com.adobe.flex</groupId>
>                                 <artifactId>compiler</artifactId>
>                                 <version>4.5.1.21328</version>
>                                 <type>pom</type>
>                         </dependency>
>                 </dependencies>
>                 <configuration>
>                         <configurationReport>true</configurationReport>
>                         <locales>
>                                 <locale>en_US</locale>
>                         </locales>
>                         <swfVersion>12</swfVersion>
>                         <contextRoot>/mywebapp</contextRoot>
>                 </configuration>
>         </plugin>
>
> Trying to discover what is the problem, I saw that the problem is in
> the .actionScriptProperties generated by flexmojos:
>
> In the .actionScriptProperties file by flexmojos, at some point we
> have:
>
> <libraryPathEntry kind="4" path="">
>      <modifiedEntries>
>           ...A lot of libraryPathEntry to SWC file from Flex
> Framework.
>      </modifiedEntries>
>      <excludedEntries>
>           ...Anothers libraryPathEntries
>      </excludedEntries>
> </libraryPathEntry>
>
> The .actionScriptProperties file generated by FlashBuilder is very
> similar, but in this point is diferent:
>
> <libraryPathEntry kind="4" path="">
>
>      ...We do not have <modifiedEntries>
>
>      <excludedEntries>
>           ...Anothers libraryPathEntries
>      </excludedEntries>
> </libraryPathEntry>
>
> If I remove the modifiedEntries from .actionScriptProperties file
> generated by flexmojos, the swf´s Runs with success.
>
> Eli Barbosa,
>
> On 26 out, 08:19, james <[email protected]> wrote:
>
>
>
> > The pom is 
> > here:http://code.google.com/p/javaems/source/browse/trunk/example/client/f...
>
> > on lines 75 to 78 I have put some properties to define the two
> > different sdks:
>
> >   <flashplayer.version>10.0</flashplayer.version>
> >   <flex.version>4.1.0.16076</flex.version>
> >   <!--<flashplayer.version>10.2</flashplayer.version>
> >   <flex.version>4.5.1.21328</flex.version>-->
>
> > the swf generated in the target directory works fine with 4.1.0.16076
> > but if you uncomment 4.5.1.21328,
> > the flash player has a blank screen and you get the VerifyError: Error
> > #1053.
>
> > James
>
> > On Oct 25, 10:12 pm, Grant Smith <[email protected]> wrote:
>
> > > Could you post your pom.xml ?
>
> > > On Tue, Oct 25, 2011 at 11:06 AM, james <[email protected]> 
> > > wrote:
>
> > > > Hi
>
> > > > I have an app that works fine with flex sdk 4.1.0.16076 using flex-
> > > > mojos 4.0-RC2.
>
> > > > When I upgrade to flex sdk 4.5.1.21328; everything compiles ok but
> > > > when I run
> > > > the swf I get a blank screen in the Flash player and an error message
> > > > saying:
>
> > > > VerifyError: Error #1053: Illegal override of z in
> > > > mx.core.UIComponent.
>
> > > > This appears to be related to the swf-version or target player but the
> > > > flex-configs.xml report generated
> > > > by flexmojos reports that swf-version is 11 and target player 10.2.0.
>
> > > > Any ideas on how to fix this would be much appreciated.
>
> > > > James
>
> > > > --
> > > > 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/
>
> > > --
> > > Grant Smith - V.P. Information Technology
> > > Marathon Computer Systems, LLC.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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/

Reply via email to