VerifyError: Error # 1014: class not found

I am developing an AS3 project using Flash Builder 4.5 (also with the Away3D 4.0 library and SDK version 4.5.1).

In addition, I am adding my own SWC library, which I compile earlier in my project. It works if I import a class into my SWC library, however I want my swf to run in a standalone flash player 11.

I follow this guide: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-4dd43be212e8f90c222-7ffb.html

Now I can run my application in flash player 11, but at runtime I got an error:

VerifyError: Error # 1014: Could not find class XXX

And XXX is my class in the SWC library. How to fix it?

+8
actionscript-3 flash-player-11
source share
5 answers

Merging with the code means this, in the project properties → Flex build path → Library path → Interface. The lingage structure has two options. Code merge and RSL. Chose Merge with the code. This should solve your problem.

+10
source share

We had this problem when trying to create a project using our own extension.

Classes inside the NE were not found at run time, but were available in Flash Builder.

It turned out that, by default, the .ANE file was not copied to the device.

To fix this, change the following project property:

Planning an ActionScript assembly -> Apple iOS -> Native extensions -> Check Package for ANE

I don’t know why it was not enabled by default. When you uncheck the "Package" box, you will receive a warning that this may lead to runtime problems!

+5
source share

In my case, we had an embedded link to the same library that needed to be loaded before another library also used it. This fix can be done by unchecking the box “Automatically determine the order of libraries based on dependencies” and moving the library to the library chain of assembly paths. Flash Builder was unable to determine the correct order base for dependencies because we had two different versions of the same library. The error occurred only at runtime.

+3
source share

I had this problem after installing AIR 3.9 and trying to update the project.

He also said that there was an RSL error before throwing error sequence # 1014.

It worked after I set the link type textLayout.swc in Advanced ActionScript Settings to "code-integrated" instead of the standard (RSL)

Hope this helps!

+1
source share

Since I landed on this page looking for this error message and none of the above solutions worked for me, here is how I finally managed to get around this:

This error seems to occur, especially when you include old libraries that were compiled with the old compiler, but compile the application with the new one. Unfortunately, the error sometimes works, and when you compile it does not; in other cases, it works fine in the debug version, but then it doesn't work in the release.

What worked for me is to include dummy objects in the main application, which are instances of the class with which the validation error occurs:

import some.classpath.to.TheClassThatFailsOnVerify; function YourMainApp(){ var dummy:TheClassThatFailsOnVerify = new TheClassThatFailsOnVerify (); } 

At least in my case, errors were triggered only for classes that were not used directly in the application, but only inside the code of the swc library, therefore, having dummy objects in the main application, I force Flash Builder to include these classes in compilation.

In some cases, you may need to first find a swc that contains the class in question, since it is not part of the swc library you are using, but again it is a library that uses this swc.

+1
source share

All Articles