Question

I have this folder structure:
/source/MapEditor where the main project resides. (with its src folder inside)
/source/Geonerd with some classes declared as belonging to the Geonerd package.

I've tried to include the Geonerd package, with no luck.
How do I import it? ( the yellow warning icon says Definition Geonerd.Polygon could not be found )

If I copy the Geonerd folder instead, inside the src folder, I can do import Geonerd.* correctly, but not with the linked folder.

Note: it's not a .swc library, it's just the .as sources inside a folder all within the Geonerd package.

enter image description here

Note 2: I added the folder to the project's ActionScript Build Source Path but doesn't work either:
Note that what should be the Geonerd Package is recognized as (default package)

enter image description here

Update: if I make the linked sources belong to the anonymous package, I can import them, but the problem is they have to be in their own package to avoid name clash with other libraries I'm using. And that libraries in turn are also in their own package and I need to import them as well.

Was it helpful?

Solution 2

Actually I had to add a folder that had a folder inside, named Geonerd so then Flash Builder recognizes it as the Package Geonerd and not just a default package.

OTHER TIPS

You need to add it as an external folder. Select Project -> Properties -> ActionScript Build Path. On the build path properties page, select the Source Path tab. Click the Add Folder button. Enter or browse to the folder, click OK. The folder is added to the source path.

Should look similar to: http://blogs.adobe.com/airodynamics/files/2012/05/snapshot1.png

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top