Hi All,
I am trying to compile components using compc for gumbo but have been
having namespace issues.
This is the error i get,
main:
[compc] Loading configuration file
/Users/nayan/Downloads/flex_sdk_4/frameworks/flex-config.xml
[compc] Error: could not find source for class
spark.layouts:VerticalAlign in namespace
library://ns.adobe.com/flex/spark.
[compc]
I have tried all different options but nothing seems to work. My
components compile fine if i take out the namespaces in my build.xml.
<?xml version="1.0"?>
<project name="first" basedir="." default="main">
<taskdef resource="flexTasks.tasks"
classpath="${basedir}/flexTasks/lib/flexTasks.jar" />
<!--<property name="FLEX_HOME" value="/Applications/Adobe Flash
Builder Beta/sdks/4.0.0"/> -->
<property name="FLEX_HOME" value="/Users/nayan/Downloads/flex_sdk_4/"/>
<property name="DEPLOY_DIR" value="."/>
<property name="COMPONENT_ROOT" value="."/>
<target name="main">
<compc output="${DEPLOY_DIR}/MyComps.swc" compiler.debug="false"
compiler.optimize="" include-classes="components.MySkin
components.Button1"
target-player="10" directory="true">
<source-path path-element="."/>
<namespace uri="http://www.nayansavla.com/2009"
manifest="${DEPLOY_DIR}/manifest.xml"/>
<include-namespaces
uri="http://www.nayansavla.com/2009"/>
<namespace uri="library://ns.adobe.com/flex/spark"
manifest="${FLEX_HOME}/frameworks/spark-manifest.xml"/>
<namespace uri="http://ns.adobe.com/mxml/2009"
manifest="${FLEX_HOME}/frameworks/mxml-2009-manifest.xml"/>
<namespace uri="http://www.adobe.com/2006/mxml"
manifest="${FLEX_HOME}/frameworks/mxml-manifest.xml"/>
<include-namespaces
uri="library://ns.adobe.com/flex/spark"/>
<include-namespaces
uri="http://ns.adobe.com/mxml/2009"/>
<include-namespaces
uri="http://www.adobe.com/2006/mxml"/>
</compc>
</target>
</project>
This is how my build.xml looks, thank you for your help.
Nayan Savla
http://nayansavla.com/blog/
Success Lies in Courage.