Adding source to build path for Flex

I am trying to add a source path to the build path for my flex app, but can't seem to get it to work. (I'm trying to do the equivalent in IDEA as described for Flex Builder here: http://www.smartfoxserver.com/docs/)

I have added the source as an external library (project structure > SDKs > Classpath), which gives me code completion. However, when I compile I get the error "Type was not found or was not a compile-time constant" error.

Can you let me know how I can resolve this?

Thanks!

2 comments
Comment actions Permalink

In usual workflow you shouldn't change anything in IDEA Flex SDK settings.

Source folders are configured at Project Structure -> Modules -> select your module ->  Sources tab. If required source folder is not under current content root then you should first add new content root to the module (one folder can be a content root and a source folder at the same time though usually source folder is enclosed in content root).

Other dependencies (i.e. dependencies on swc files and other IDEA modules) are configured at the Dependencies tab.

0
Comment actions Permalink

Ahh, I understand now. I works great. Thanks.


0

Please sign in to leave a comment.