ressource is the name of my directory (french syntax). I don't think
it's a problem.
I found this ticket https://bugs.adobe.com/jira/browse/SDK-15466
It seems it is fixed in Flex 4 but I use Flex 3


On 13 mai, 10:26, mace <[email protected]> wrote:
> 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...";>
> >         <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>.*&lt;/i','version>${version}&lt;',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>
> >      
>
> ...
>
> plus de détails »

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