actionscript 3 - Flex Compilier says source-path and package definition mismatch -
here's issue:
i have 3 files in same package: com.foobar
the directory these files is:
c:..\mylibrary\src\com\foobar\
then inside have foo.as , bar.as
when try run mxmlc c:..\mylibrary\src\com\foobar\foo.as error:
a file found in source-path must have same package structure ' ', definition's package, 'com.foobar'.
to say: does. package com.foobar. structure goes ../com/foobar/foo.as
i've found few other forum posts on web error, , seemed user had make directory matching package name, have. missing?
thanks in advance can give!
a co-worker helped me quite time on this. turns out had use following command:
(in directory x holds \src\com\foobar\foo.as
)
mxmlc -compiler.source-path=.\src -static-link-runtime-shared-libraries=true .\src\com\foobar\foo.as -output .\test.swf
for whatever reason, -source-path
command tried wasn't satisfactory.
i'm not sure why works this, hey works now. hope helps others lost trying compile actionscript package.
Comments
Post a Comment