0 Replies Latest reply on Oct 5, 2011 5:04 AM by Ralf Eversen

    Problem building swc that contains <s:SolidColor> with manifest file

    Ralf Eversen

      Hi all,


      I have a problem compiling a library with the command line compiler. The problem is that when I don't use a Manifest file, everything compiles as expected. When I specify a Manifest file for building my swc, I get an error "Could not resolve <s:SolidColor> to a component implementation".


      My library consists of one class, which is: Test.mxml

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

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

        <s:Rect x="50" y="50" width="100" height="100">


            <s:SolidColor />





      This is my Manifest.xml

      <?xml version="1.0"?>


                <component id="Test" class="Test"/>



      This commands gives no error and results in a swc successfully

      compc -output TestLibrary.swf -include-classes Test -source-path .


      This commands leads to the error "Could not resolve <s:SolidColor> to a component implementation"

      compc -output TestLibrary.swf -include-classes Test -source-path . -compiler.namespaces.namespace http://test Manifest.xml -include-namespaces http://test


      I think this is the correct way of creating an swc using a Manifest file. Is this correct (so this is a bug?) or am I doing something wrong?