Apr 8 2009

Flash Player VerifyError: Error #1014 with RSLs

This is more a note to self, but I’m sure others will run into it as well. If you just changed your Flex/Flash project to use Runtime Shared Libraries (RSLs) and launch your new, shiny and tiny application for the first time only to see the error message “VerifyError: Error #1014: Class some.package::SomeClass could not be found“, then do not despair. Most likely you’ll just have to switch the order in which the libraries are being loaded.

If RSL A depends on RSL B, you will need to make sure that B is loaded before A, otherwise you see the message above. Go back to your flex project, hit Project properties, select “Flex Build Path”, then tab “Library path”. Rearrange the “Build path libraries” to make sure they are loaded in the right order and do a rebuild.

6 Responses to “Flash Player VerifyError: Error #1014 with RSLs”

  • Alonso Says:

    hi, i m one of that people with a new shiny and tiny app for the first time,

    this is the code:

    package {
    import flash.net.URLRequest;
    import flash.html.HTMLLoader;
    import flash.display.Sprite;

    /**
    * @author alonso
    */
    public class TestAir1 extends Sprite {

    private var htmlSprite : HTMLLoader;

    public function TestAir1() {

    htmlSprite = new HTMLLoader();
    htmlSprite.width = 500;
    htmlSprite.height = 500;
    trace(“entrando…”);
    htmlSprite.load(new URLRequest(“http://www.marca.com”));
    addChild(htmlSprite);
    }
    }
    }

    this is the error:
    VerifyError: Error #1014: No se encontró la clase flash.html::HTMLLoader.

    at global$init()

    the build classpath is

    flex.swc [Flex_3_SDK_with_AIR]
    framework.swc ”
    rpc.swc
    utilities.swc
    airglobal.swc
    airframework.swc
    servicemonitor.swc
    applicationupdater_ui.swc
    PruebaAir/src

    this is default configuration, i m using fdt3 with mac book pro

    could you help me?

    thx a lot

  • Mayur Says:

    Thanks… saves my time. :)

  • Guillen Says:

    Hi, I have that error (#1014) I rearranged the Build path libraries in many ways, but the same error persist. Have i doing some wrong?? What can I do for solve the problem?? Any Other Idea?? Thanks.

  • hseldon Says:

    I had this issue with loading modules. In project->properties->Flex Modules->Edit you can select “Do not optimize”. That worked for me.

  • Jedi Says:

    Hi!
    I was in that situation too, but then I moved my SWC RSL up and down in build path list it is only moved up and down place of that error. It is always been.
    But I found some aswer. In my situation I set in flex library section framework.swc to compile as RSL – that generated 2 addition files in “bin-debug” for framework, but project compiled well.
    When I tryed switch it back to “merged into code” and compile project – error come back again. So I leaved it as “RSL”.

    I wish it will be helpfull at all.

Leave a Reply