it will depends on your project folder structure
can you post that here
you will probably need to either add the assets directory directly to your source path
project properties->Flex build path->Source path->Add Folder
assuming the assets directory is parallel to your src folder
use <fx:XML id="XMLvar1" source="../assets/config/1.xml" />
my structure is like this
When i linked the folder assets to main_project i could see the image in the designer using path with ../assets/image/...
But when i ran the app, the image didnt show. My guess is that images are not copied on build, but the XMLs are
When i add the folder assets to main_project as source path the structure of main_project becomes
[source paths] assets
config (here i have xmls)
But i can't link the XMLs with the code
<fx:XML id="XML1" source="assets/config/1.xml" />
<fx:XML id="XML2" source="assets/config/2.xml" />
I get Problem finding external XML, even if i put ../assets..
Whats the right linking way when adding a folder as source path ?
ok based on that structure the ../assets i said is wrong and they way you did it originally should work as far as I am aware.
since the assets folder is within the src folder it will already be added to the source path.
you could try <fx:XML id="XML1" source="/assets/config/1.xml" />
but beyond that I am a little stumped. I might be able to find time to setup a project similar to yours a little later if i can replicate the issue i'll get back you you with a fix
That would be great
Please try put a image and a XML in a library project and load xml and display image in the main
The main problem are the images.. never got a way to show them.
To the xml i had access on a few configurations
I finaly managed
The solution was to go on main_project -> flex build path ->source path
and add there lib_project/src
And no selecting the lib_project in flex build path/library path