Are you sure AS3 projects support RSL?
VELO

On Wed, Jun 10, 2009 at 7:25 AM, Lorenzo Sicilia
<[email protected]>wrote:

>
> Hi to all,
>
> I create an AS3 project with flexmojos and works quite fine.
> Quite because the runtime-shared-library is ignored. I use a
> When I run my test.swf I get an error like this:
> ReferenceError: Error #1065: Variable it.kemen.mk09.common::App is not
> defined.
>        at Main()
>
> I notice that removing common-v1.swf from outputdir doesn't generate
> the not loaded rsl library error. Then I thing the library path is not
> linked at all.
>
> I am not sure if is a flexmojos  or flex compiler issue. I found this
> old post
>
> http://groups.google.com/group/flex-mojos/browse_thread/thread/e1bf97c81bd23e76/defa43ecfec743c0?lnk=gst&q=as3+project+shared+library#defa43ecfec743c0
>
> Then I need switch my swc project to swc project? Strange because my
> common project works fine with a flex project instead of as3 project.
>
> Regards Lorenzo
>
>
> Follow my pom summary:
>
> ############
> Project POM
> ############
> ...
> <build>
>    <sourceDirectory>src/main/flex</sourceDirectory>
> <!--    <testSourceDirectory>src/test/flex</testSourceDirectory>-->
>    <plugins>
>      <plugin>
>        <groupId>org.sonatype.flexmojos</groupId>
>        <artifactId>flexmojos-maven-plugin</artifactId>
>        <version>3.2.0</version>
>        <extensions>true</extensions>
>        <executions>
>         <execution>
>                  <id>flexbuilder</id>
>                  <phase>install</phase>
>            <goals>
>              <goal>flexbuilder</goal>
>            </goals>
>             <configuration>
>                    <generateHtmlWrapper>true</generateHtmlWrapper>
>            </configuration>
>          </execution>
>        </executions>
>        <configuration>
>                <targetPlayer>${flashPlayer.version}</targetPlayer>
>                <defaultSizeWidth>972</defaultSizeWidth>
>                <defaultSizeHeight>26</defaultSizeHeight>
>                <rslUrls>
>                        <rsl>common-v1.swf</rsl>
>                </rslUrls>
>         </configuration>
>      </plugin>
> ...
> <dependencies>
>
>    <dependency>
>      <groupId>mk2009</groupId>
>      <artifactId>common</artifactId>
>      <version>v1</version>
>      <type>swc</type>
>      <scope>rsl</scope>
>    </dependency>
>
>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>playerglobal</artifactId>
>                        <version>${flex.version}</version>
>                        <classifier>10</classifier>
>                        <type>swc</type>
>                </dependency>
>  </dependencies>
> ...
>
>
> ############
> Common SWC POM
> I include here AS3 class and MXML component
> ############
>
> ....
> <build>
>                <sourceDirectory>src/main/flex</sourceDirectory>
>                <testSourceDirectory>src/test/flex</testSourceDirectory>
>                <plugins>
>                        <plugin>
>                                <groupId>org.sonatype.flexmojos</groupId>
>                                <artifactId>flexmojos-maven-plugin
>                                </artifactId>
>                                <version>${flexmojos.version}</version>
>                                <extensions>true</extensions>
>                                <executions>
>                                 <execution>
>                                  <id>flexbuilder</id>
>                                  <phase>install</phase>
>                            <goals>
>                              <goal>flexbuilder</goal>
>                            </goals>
>                          </execution>
>                                        <execution>
>                                                <goals>
>
>  <goal>optimize</goal>
>                                                </goals>
>                                        </execution>
>                                </executions>
>                                <configuration>
>
>  <targetPlayer>${flashPlayer.version}</targetPlayer>
>                                <!--    <output>${project.build.directory}/$
> {project.artifactId}.swf</output>-->
>                                </configuration>
>                        </plugin>
> ....
>
> <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>10</classifier>
>                        <type>swc</type>
>                </dependency>
>
>                <dependency>
>                        <groupId>org.sonatype.flexmojos</groupId>
>                        <artifactId>flexmojos-unittest-support</artifactId>
>                        <version>${flexmojos.version}</version>
>                        <type>swc</type>
>                        <scope>test</scope>
>                </dependency>
>
>        </dependencies>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to