I’m developing AS3 project using Flash Builder 4.5 (also with library Away3D 4.0 and Flex 4.5.1 SDK).
Also, I add my own SWC library, which I compile previously into my project.
It works find if I import class in my SWC library, however I want my swf run in a stand-alone flash player 11.
I follow this tutorial:
http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-4dd43be212e8f90c222-7ffb.html
Now, I could run my app in a flash player 11, but I got an error in run time:
VerifyError: Error #1014: XXX class could not be found
And XXX is my class in SWC library. How should I fix this?
asked Nov 5, 2011 at 10:07
2
Merged into code means this, in project properties -> Flex Build Path -> Library Path -> Framework Linkage. Framework lingage has two options Merged into code and RSL. Chose Merged into code. This should solve your problem.
biegleux
13.2k11 gold badges44 silver badges52 bronze badges
answered Sep 10, 2012 at 10:39
chintalchintal
1162 silver badges3 bronze badges
2
We had this problem when trying to build a project using a Native Extension.
Classes within the NE weren’t being found at runtime, but were accessible in Flash Builder.
It turned out that by default the .ANE file wasn’t copied to the device.
To fix this, change the following project property:
ActionScript Build Packaging -> Apple iOS -> Native Extensions -> Check ‘Package’ for the ANE
No idea why it wasn’t included by default. When you uncheck ‘Package’ you get a warning telling you that it may cause runtime issues!
answered Oct 29, 2013 at 18:04
TedTed
2,4852 gold badges37 silver badges53 bronze badges
In my case, we had a nested reference to the same library which needed to load before the other library also using it. This fix can be accomplished by unchecking the ‘Automatically determine library ordering based on dependencies’ and moving the library up in the chain of Build path libraries. Flash Builder was unable to determine the correct order base on dependencies because we had 2 different versions of the same library. The error would only happen during run time.
answered Apr 10, 2013 at 18:28
CraigCraig
311 bronze badge
I had this problem after installing AIR 3.9 and trying to upgrade a project.
It was also saying there was an RSL error, before throwing a succession of #1014 errors.
It worked after I set the textLayout.swc link type in Advanced ActionScript Settings to ‘merged into code’ instead of the default (RSL)
Hope this helps!
answered Oct 18, 2013 at 10:19
John BowerJohn Bower
3112 silver badges7 bronze badges
Since I landed on this page searching for this error message and none of the above solutions worked for me, here’s how I finally managed to work around it:
It seems that this error happens particularly when you include old libraries that were compiled with the old compiler but compile your app with the new one. Unfortunately the error sometimes fires and when you compile again it doesn’t; at other times it works fine in the debug version but then it fails in the release.
What worked for me is to include dummy objects in your main app which are instances of the class that the verify error complains about:
import some.classpath.to.TheClassThatFailsOnVerify;
function YourMainApp(){
var dummy:TheClassThatFailsOnVerify = new TheClassThatFailsOnVerify ();
}
At least in my case the errors only fired for classes that were not used directly in the app but only internally in the swc library code, so by having the dummy objects in the main app I force Flash Builder to include those classes in the compilation.
In some cases you might have to first find the swc that contains the class in question since it’s not part of the library swc you use but it’s again a library that that swc uses itself.
answered Oct 29, 2014 at 16:18
QuasimondoQuasimondo
2,4551 gold badge22 silver badges30 bronze badges
I’m developing AS3 project using Flash Builder 4.5 (also with library Away3D 4.0 and Flex 4.5.1 SDK).
Also, I add my own SWC library, which I compile previously into my project.
It works find if I import class in my SWC library, however I want my swf run in a stand-alone flash player 11.
I follow this tutorial:
http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-4dd43be212e8f90c222-7ffb.html
Now, I could run my app in a flash player 11, but I got an error in run time:
VerifyError: Error #1014: XXX class could not be found
And XXX is my class in SWC library. How should I fix this?
asked Nov 5, 2011 at 10:07
2
Merged into code means this, in project properties -> Flex Build Path -> Library Path -> Framework Linkage. Framework lingage has two options Merged into code and RSL. Chose Merged into code. This should solve your problem.
biegleux
13.2k11 gold badges44 silver badges52 bronze badges
answered Sep 10, 2012 at 10:39
chintalchintal
1162 silver badges3 bronze badges
2
We had this problem when trying to build a project using a Native Extension.
Classes within the NE weren’t being found at runtime, but were accessible in Flash Builder.
It turned out that by default the .ANE file wasn’t copied to the device.
To fix this, change the following project property:
ActionScript Build Packaging -> Apple iOS -> Native Extensions -> Check ‘Package’ for the ANE
No idea why it wasn’t included by default. When you uncheck ‘Package’ you get a warning telling you that it may cause runtime issues!
answered Oct 29, 2013 at 18:04
TedTed
2,4852 gold badges37 silver badges53 bronze badges
In my case, we had a nested reference to the same library which needed to load before the other library also using it. This fix can be accomplished by unchecking the ‘Automatically determine library ordering based on dependencies’ and moving the library up in the chain of Build path libraries. Flash Builder was unable to determine the correct order base on dependencies because we had 2 different versions of the same library. The error would only happen during run time.
answered Apr 10, 2013 at 18:28
CraigCraig
311 bronze badge
I had this problem after installing AIR 3.9 and trying to upgrade a project.
It was also saying there was an RSL error, before throwing a succession of #1014 errors.
It worked after I set the textLayout.swc link type in Advanced ActionScript Settings to ‘merged into code’ instead of the default (RSL)
Hope this helps!
answered Oct 18, 2013 at 10:19
John BowerJohn Bower
3112 silver badges7 bronze badges
Since I landed on this page searching for this error message and none of the above solutions worked for me, here’s how I finally managed to work around it:
It seems that this error happens particularly when you include old libraries that were compiled with the old compiler but compile your app with the new one. Unfortunately the error sometimes fires and when you compile again it doesn’t; at other times it works fine in the debug version but then it fails in the release.
What worked for me is to include dummy objects in your main app which are instances of the class that the verify error complains about:
import some.classpath.to.TheClassThatFailsOnVerify;
function YourMainApp(){
var dummy:TheClassThatFailsOnVerify = new TheClassThatFailsOnVerify ();
}
At least in my case the errors only fired for classes that were not used directly in the app but only internally in the swc library code, so by having the dummy objects in the main app I force Flash Builder to include those classes in the compilation.
In some cases you might have to first find the swc that contains the class in question since it’s not part of the library swc you use but it’s again a library that that swc uses itself.
answered Oct 29, 2014 at 16:18
QuasimondoQuasimondo
2,4551 gold badge22 silver badges30 bronze badges
Getting this when running the latest build. Haxe 3.0.1, latest dev FD, happens right after the preloader:
VerifyError: Error #1014: Class flash.ui::GameInput could not be found.
at flixel::FlxG$/init()[C:HaxeToolkithaxelibflixelgitflixelFlxG.hx:453]
at flixel::FlxGame()[C:HaxeToolkithaxelibflixelgitflixelFlxGame.hx:213]
Deleted some of the extraneous stuff.
Yeah.. I expect we’re gonna get this a lot from now on.
We added flash gamepad support, which requires flash player version 11.8+. So there are two things you can do:
- Increase the flash player version accordingly:
<set name="SWF_VERSION" value="11.8" />
- Disable gamepads on flash:
<haxedef name="FLX_NO_GAMEPAD" if="flash" />
This is not documented (well, outside of Github), so I think it’ll be best to update the template with set name=»SWF_VERSION» value=»11.8″ instead of waiting for more complaints to arrive…
I’ve already done that. Plus, this is not released yet, so I don’t see the need for docs outside of GitHub.
Don’t mind me, I’m just honoring the long time tradition of me, having a really bad commenting practices on Github…
Can someone direct me to a simple guide for updating my Flash player in FlashDevelop? No matter which instructions I follow, I’m still ending up with Flash Player 10 opening by default, and I’m getting the gamepad error every time (I added the SWF_VERSION 11.8 etc. line from above)
Thanks!
Copy link
Contributor
Author
Xyroclast,
In your project xml, you’re going to want a line like this:
«set name=»SWF_VERSION» value=»11.8″ /»
With the outermost double quotes replaced by angle brackets.
I believe this is the problem you’re talking about. I was having it myself at one point.
Hi Victor, thank you.
I’ve tried adding that line, and so far it’s made no difference — I’m thinking there might be some setting within FlashDevelop (globally) that’s still pointing to Flash Player 10, even though I can’t seem to find it. Any thoughts?
Copy link
Contributor
Author
As far as I know, the xml should typically overrule most of what the FD settings could be — I had problems with that in the past. But if that doesn’t work, I’m out of my league. Hopefully someone else will know what’s up.
Someone on Twitter’s figured it out for me — It’s a weird issue where the default program set in Windows will override anything done in FlashDevelop.
You need to actually right-click the file and choose the flash player from the «default program to open» dialogue…
Very weird.