Linking to Robotlegs files for project in FDT
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.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Ondina D.F. on 25 May, 2012 03:03 PM
Hi John,
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
3 Posted by john on 25 May, 2012 03:37 PM
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 {
4 Posted by john on 25 May, 2012 04:22 PM
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.
5 Posted by john on 25 May, 2012 04:25 PM
Once again, import statements had been stripped out.
Thank you for mentioning
-keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct
John
john closed this discussion on 25 May, 2012 04:25 PM.
Ondina D.F. re-opened this discussion on 25 May, 2012 04:55 PM
Support Staff 6 Posted by Ondina D.F. on 25 May, 2012 04:56 PM
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.
7 Posted by john on 25 May, 2012 05:12 PM
"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
Support Staff 8 Posted by Ondina D.F. on 25 May, 2012 05:16 PM
No problem, John!
Ondina D.F. closed this discussion on 25 May, 2012 05:16 PM.