Here's the issue:
I have three files in the same package: com.foobar
The directory to these files is:
C:..\mylibrary\src\com\foobar\
then inside I have foo.as and bar.as
When I try to run mxmlc C:..\mylibrary\src\com\foobar\foo.as I get the error:
A file found in a source-path must have the same package structure ' ', as the definition's package, 'com.foobar'.
To that I say: it does. The package is com.foobar. The structure goes ../com/foobar/foo.as
I've found a few other forum posts on the web about this error, and it seemed like the user had to make the directory matching the package name, which I already have. What am I missing?
Thanks in advance for any help you can give!
Best Answer
A co-worker helped me for quite some time on this. Turns out I had to use the following command:
(in the directory x which holds
\src\com\foobar\foo.as
)For whatever reason, the
-source-path
command I tried wasn't satisfactory.I'm not exactly sure why it works like this, but hey it works now. Hope this helps others that are lost trying to compile an actionscript package.