Flex Compilier says source path and package definition mismatch

Here's the problem:

I have three files in one package: com.foobar

Directory for these files:

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 an error message:

The file found in the source path must have the same package structure '' as the definition package, com.foobar.

To what I say: it is. Package com.foobar. The structure goes .. /com/foobar/foo.as

I found several other posts on the Internet about this error, and it seemed like the user should have made a directory corresponding to the name of the package that I already have. What am I missing?

Thanks in advance for any help you can give!

+5
6
. , :

( x, \src\com\foobar\foo.as)

mxmlc -compiler.source-path=.\src -static-link-runtime-shared-libraries=true .\src\com\foobar\foo.as -output .\test.swf

- -source-path, , .

, , . , , , actionscript.

+7

, , , , .mxml .as , .mxml , .mxml.

, .mxml

  • MyPackage.Util.MyClass;

.as, ,

  • \ HOWTO\MyFile.mxml

  • \ HOWTO\MyPackage\Util\MyClass.as

, , , .. \bin\mxmlc MyFile.mxml

, source-path , , .

+1

3 : com.foo, com.foobar com.plupload, , 3:\com\foobar. \com\foobar \, com.foobar. , , . : .

0

, . , foo.as Foo.as, Foo.

0

Flash Builder.

air/flex sdk, , , , , Flash- .

, src , , Flash Builder .

(.as mxml ..) " Defualt Application", . , :

Project > Properties > ActionScript Build Path 

. , 'src' - , , (.as - ).

/ (.. , , 'src', )

Project > Properties > ActionScript Compiler

, Flex SDK . " ", " SDK" , . , - Flex 4.6.0 - . flex-sdk-description.xml :

Adobe > Adobe Flash Builder 4.6(or your current version) > sdks > Flex 4.6.0 ( , Flash-).

, flex-sdk-description.xml , (). . <name>Something written here</name> , Flex SDK Flash Builder ( ). <name>, sdk Flash Builder. , , <name> - Flex 4.6.0 - flex, . Flex 4.6.0 (Air3.6) - , adobe sdk/extension, , .

Finally, check your output section under Project> Properties> ActionScript Build Path since the default is Output is bin-debug. Unless you specifically changed this before, then by default it will be: bin-debug

Good luck

0
source

check all tags in the .actionScriptProperties file. If you copied and moved the folder, this is the place where it should be checked. In my case, I changed From:

0
source

All Articles