Flash DLL & robotlegs

cimon(from chinese) 's Avatar

cimon(from chinese)

24 May, 2012 05:27 AM

I use the FLASH DLL(http://www.flashdll.org/) for the aswing,
but such as my project the view extends JFrame
when run the project ,throw as error: ' VerifyError: Error #1014: can't find the class org.aswing::JFrame'
tip: first I down the aswing.swf,then run the robotlegs in my project!

  1. 1 Posted by cimon(from chin... on 24 May, 2012 05:30 AM

    cimon(from chinese) 's Avatar

    the accessory:.......

  2. Support Staff 2 Posted by Ondina D.F. on 24 May, 2012 11:01 AM

    Ondina D.F.'s Avatar

    Hi cimon,

    • Is the robotlegs library missing in your original project as well, or just in the attached one?

    • You have 3 separate projects inside your flash_dll folder:


    with 3 different application domains.

    In your RobotlegsTest you are trying to load an swf from RobotlegsDLL.
    You have to make sure that the url for your RobotlegsDLL.swf is correct.
    Your RobotlegsDLL.swf is inside RobotlegsDLL/bin-debug/ folder in your attached project.
    So your url should be something like this:
    var url:String="http:// yourpath /flash_dll /RobotlegsDLL/bin-debug/RobotlegsDLL.swf";

    (yourpath = your real path to the flash_dll )

    loader.load(new URLRequest(url, context);

    • then you should keep a reference to your main context:

    This is wrong:
    private var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);

    private function onCompleteHanlder(evt_:Event):void

    var context:MyContext = new MyContext(this);


    This is correct:

    private var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);

    private var context:MyContext;

    private function onCompleteHanlder(evt_:Event):void

    context = new MyContext(this);


    See Common Problems: https://github.com/robotlegs/robotlegs-framework/wiki/Common-Proble...

    You also may want to read this, in case you haven’t already: https://github.com/robotlegs/robotlegs-framework/wiki/Best-Practices

    Let us know if it helped.


  3. Ondina D.F. closed this discussion on 16 Jul, 2012 08:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac