have a similar problem using flex 4.5.0.20967 and had smiliar problems before.
while reading your post i read "ressource" instead of "resource". maybe a typo but maybe the root of your problem. good luck On 13 Mai, 10:01, Loïc Mésières <[email protected]> wrote: > Hi all, > > I'm trying to embed image in an AS class like this : > > [Embed( source="/image/maximize.png" )] > public var maximizeIcon:Class; > > Main sources are in the folder : /src. > And my images are an other folder : /ressource/image. > And add the images with a add-source goal. > When I compile I have the following error : > > Error: unable to resolve '/image/minimize.png' for transcoding > [Embed( source="/image/minimize.png" )] > > When I copy all my ressource folder in my src folder everything works > fine. > > Do you have an idea about this error or a solution. > > Thanks in advance. > > ps : Here is my pom file : > > <?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.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.francetelecom</groupId> > <artifactId>SmartManager</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>swf</packaging> > <name>Client SmartManager Flex</name> > <properties> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > <flex.sdk.version>3.5.0.12683</flex.sdk.version> > <flexmojos.version>4.0-beta-7</flexmojos.version> > <player.version>10.0.0</player.version> > </properties> > <build> > <sourceDirectory>src</sourceDirectory> > <testSourceDirectory>test</testSourceDirectory> > <plugins> > <!-- Add source directories --> > <plugin> > <groupId>org.codehaus.mojo</groupId> > > <artifactId>build-helper-maven-plugin</artifactId> > <version>1.5</version> > <executions> > <execution> > <id>add-more-source</id> > <goals> > > <goal>add-source</goal> > </goals> > <configuration> > <sources> > > <path>ressource</path> > > <path>ressource/lang/en_US</path> > > <path>ressource/lang/fr_FR</path> > </sources> > </configuration> > </execution> > </executions> > </plugin> > <!-- Compute --> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>exec-maven-plugin</artifactId> > <version>1.1</version> > <executions> > <execution> > > <phase>generate-sources</phase> > <goals> > <goal>exec</goal> > </goals> > </execution> > </executions> > <configuration> > <executable>php</executable> > <arguments> > <argument>-r</argument> > > <argument>"file_put_contents('src/config.xml',preg_replace('/ > version>.*</i','version>${version}<',file_get_contents('src/ > config.xml')));"</argument> > </arguments> > </configuration> > </plugin> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > <version>${flexmojos.version}</version> > <extensions>true</extensions> > <configuration> > <finalName>SmartManager</finalName> > > <allowSourcePathOverlap>true</allowSourcePathOverlap> > > <sourceFile>SmartManager.mxml</sourceFile> > > <targerPlayer>${player.version}</targerPlayer> > <compilerWarnings> > > <show-actionscript-warnings>false</show-actionscript-warnings> > > <warn-bad-nan-comparison>false</warn-bad-nan-comparison> > </compilerWarnings> > <loadConfigs> > > <loadConfig>libs/flex-config.xml</loadConfig> > </loadConfigs> > <localesCompiled> > <locale>en_US</locale> > <locale>fr_FR</locale> > </localesCompiled> > </configuration> > <dependencies> > <dependency> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-flex3-compatibility-layer</artifactId> > > <version>${flexmojos.version}</version> > </dependency> > <dependency> > > <groupId>com.adobe.flex</groupId> > > <artifactId>compiler</artifactId> > <type>pom</type> > > <version>${flex.sdk.version}</version> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>framework</artifactId> > <version>${flex.sdk.version}</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>${flex.sdk.version}</version> > <type>swc</type> > <classifier>10</classifier> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>rpc</artifactId> > <version>${flex.sdk.version}</version> > <type>swc</type> > </dependency> > <!-- FlexUnit --> > <dependency> > <groupId>com.adobe.flexunit</groupId> > <artifactId>flexunit</artifactId> > <version>4.0-beta-2</version> > <type>swc</type> > <scope>test</scope> > </dependency> > <dependency> > <groupId>puremvc</groupId> > <artifactId>puremvc</artifactId> > <version>standard</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>ilog</groupId> > <artifactId>elixir</artifactId> > <version>3.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>ilog</groupId> > <artifactId>elixir</artifactId> > <version>3.0</version> > <type>rb.swc</type> > </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/
