Setup Namespace URL for Flex project in FlashDevelop

Our game client at Tribal Crossing is all written in Flex, and naturally we used Flash Builder to handle our project.  However, I’ve always been partial to FlashDevelop, a much leaner IDE that has great editor features, faster compile time, and fantastic community support.  After being fed up with another Eclipse (the IDE that Flash Builder is built on top of) crash, I decided to give FD a try for our project.

We had multiple Flex Library projects, and since there’s no direct support for that in FD, I simply added the src folder from each of the library as additional project code path – and that worked.  There was a problem with the namespace URL used in MXML and CSS, however.

There is no UI in FD to specify namespace URL.  But you can point your project to the manifest.xml files that contains the namespace URL info by adding this to your advanced compiler options (under  Project settings->Compiler Options->Advanced Compiler Options):

-namespace library://project.com/comp c:\code\src\manifest.xml

Hope this helps!

This entry was posted in Development and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>