Linking to Robotlegs files for project in FDT

john's Avatar

john

25 May, 2012 01:48 PM

I am trying HelloFlash in FDT - from the demo bundle.
I have robotlegs v1.5.2 as a linked resource from: D:\as3-robotlegs\robotlegs-framework-v1.5.2\src
The robotlegs files are not seeing each other, even though they have the correct package structure - for example you can't control-click to link to the parent class or variables.
Having said that, a file such as Actor.as has no import statements so maybe that's why.
What am I missing?

I prefer to use the code rather than the swc so that I can step through it.

  1. Support Staff 1 Posted by Ondina D.F. on 25 May, 2012 03:03 PM

    Ondina D.F.'s Avatar

    Hi John,

    I prefer to use the code rather than the swc so that I can step through the code.

    You’ll have to add the following compiler arguments in FlashBuilder

    -keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct

    Or, select “Export SWC” in your publish settings, if you’re using Flash IDE.

    See: „Metadata Stripping“: https://github.com/robotlegs/robotlegs-framework/wiki/Common-Proble...

    HTH

    Ondina

  2. 2 Posted by john on 25 May, 2012 03:37 PM

    john's Avatar

    Oh yes, I have now added those to the FDT compiler arguments. However, this is a pre-compile problem. It was working in an earlier version of FDT. Here, IEventDispatcher is not recognised because there are no import statements...

    package org.robotlegs.mvcs {

    public class Actor
    {
             protected var _eventDispatcher:IEventDispatcher;
    
  3. 3 Posted by john on 25 May, 2012 04:22 PM

    john's Avatar

    Some issue I had with fdt must have stripped out the import statements. Probably my fault. However, I still have similar problems. Will report back.

  4. 4 Posted by john on 25 May, 2012 04:25 PM

    john's Avatar

    Once again, import statements had been stripped out.
    Thank you for mentioning
    -keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct

    John

  5. john closed this discussion on 25 May, 2012 04:25 PM.

  6. Ondina D.F. re-opened this discussion on 25 May, 2012 04:55 PM

  7. Support Staff 5 Posted by Ondina D.F. on 25 May, 2012 04:56 PM

    Ondina D.F.'s Avatar

    I have no idea about FDT, I’m using FlashBuilder. But it sounds like the FDT settings have changed. See this post:

    http://knowledge.robotlegs.org/discussions/solutions/13-some-flashb...

    It refers to FlashBuilder, but maybe you can infer a solution for FDT.

  8. 6 Posted by john on 25 May, 2012 05:12 PM

    john's Avatar

    "I wrote this down pretty fast, so if it’s too confusing, I’ll review
    and rephrase and /or complete it, when I’ll get more time :)"
    That was very helpful - and clear.

    This is a new install of FDT 5.5 and previously I had trouble with the
    eclipse plugin and so went to the standalone version.
    It's working fine now.
    I really do appreciate your help.
    Thanks.
    John

  9. Support Staff 7 Posted by Ondina D.F. on 25 May, 2012 05:16 PM

    Ondina D.F.'s Avatar

    No problem, John!

  10. Ondina D.F. closed this discussion on 25 May, 2012 05:16 PM.

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

Keyboard shortcuts

Generic

? 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