How to add namespaces to a flex AIR project in Flash Builder 4?

Posted by milkplus on Stack Overflow See other posts from Stack Overflow or by milkplus
Published on 2010-12-28T22:42:24Z Indexed on 2010/12/28 22:54 UTC
Read the original article Hit count: 269

In my ant build.xml script I have...

  <namespace uri="http://ns.foo.com/mxml/2011" manifest="src/manifest.xml"/>
  <namespace uri="library://ns.adobe.com/flex/spark" manifest="flex_src/spark-manifest.xml"/>
  <namespace uri="http://www.adobe.com/2006/mxml" manifest="flex_src/mx-manifest.xml"/>

That works! But... I'm not sure how to add these namespaces to my project properties in Flash Builder 4 so I can debug. When I try, it changes this line in my .actionScriptProperties

<compiler additionalCompilerArguments="-namespace http://ns.foo.com/mxml/2011 src/manifest.xml -namespace=library://ns.adobe.com/flex/spark flex_src/spark-manifest.xml -namespace http://www.adobe.com/2006/mxml flex_src/mx-manifest.xml" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" verifyDigests="true" warn="true">

but gives me a "no default arguments are expected" error.

What is the reason for this error? The error location is "Unknown" and seems to refer to these compiler arguments.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about namespaces