PureMVC Architects Lounge

PureMVC Manifold => Bug Report => Topic started by: phanos on May 09, 2008, 04:13:24



Title: [ Flex 2.0.1 SWC ATTACHED ] PureMVC_AS3_2_0_3.swc & mxmlc
Post by: phanos on May 09, 2008, 04:13:24
Hello,

I am unsure whether this an actual bug, but the PureMVC 2.x swc breaks projects in the following setup.

We compile an AS3 application using Flex SDK 2.0.1/mxmlc & ANT with flexTasks.
When switching from PureMVC.swc (v1.6) to PureMVC_AS3_2_0_3.swc the build yields following error:

Error: unable to load SWC PureMVC_AS3_2_0_3.swc: unknown element script found in digests section in catalog.xml.

The relevant section from the task is:
<mxmlc file="${APP_ROOT}/CompileMain.as" link-report="${mxmlc.linkreport}" output="${build_swf.dir}/${main.swf}" default-background-color="${swf.bgcolor}" default-frame-rate="${swf.framerate}" use-network="${mxmlc.use_network}" incremental="${mxmlc.incremental}">
         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
         <default-size width="${swf.width}" height="${swf.height}"/>
         <source-path path-element="${FLEX_HOME}/frameworks"/>
         <source-path path-element="${src.dir}"/>
...
<!-- includes all classes and assets from following swc's -->
         <compiler.include-libraries dir="${swc.dir}" append="true">
            <include name="PureMVC_AS3_2_0_3.swc" />
            <include name="ProgressBarComponent.swc" />
         </compiler.include-libraries>
      </mxmlc>


Any hints/help will be greatly appreciated.

UPDATE
Upgrading to Flex SDK 3 and the use of the flexTasks included within will let us build the project now with PureMVC_AS3_2_0_3.swc. But the issue mentioned above still holds true and might be part of the releasenote or stated somewhere else since it does not present full compatibility to flex 2 with flextasks.

Kind regards
-ph


Title: Re: PureMVC_AS3_2_0_3.swc & mxmlc
Post by: puremvc on May 10, 2008, 05:52:42
The swc is compatible with the latest version of Flex. Adobe has changed the format of the SwC in this version.

To use PureMVC with previous versions of Flex, simply checkout the source at the latest tag,as a Flex library project and compile a.new swc.

Sorry for the confusion.
-=Cliff> 


Title: Re: PureMVC_AS3_2_0_3.swc & mxmlc
Post by: puremvc on May 15, 2008, 04:07:57
Attached is a swc of PureMVC Standard Version 2.0.3 for Flex 2.0.1.

Thanks to Javier Julio for this.

-=Cliff>