Error: cannot add .mxml file to project

245 views Asked by At

I have a project .swc made with maven. the build is successful. If I add the project to Flashbuilder, i get no errors. But if i add a .mxml file with flashbuilder, so its generated from flashbuilder.

Then i get This error:

1172: Definition mx.core:DeferredInstanceFromClass

could not be found.

if i add .as file then there is no problem.

does anyone have an idea or solution to this problem..

Thanks.

1

There are 1 answers

4
JeffryHouser On BEST ANSWER

It is not clear what adding an MXML file to a Flash Builder project has to do with a SWC built from Maven.

However, errors such as the one you state often crop up when there is a SDK version mismatch between the library project and main project. So, be sure that your SWC is being compiled with the same version of the SDK that your main project uses.