Require external assets for my application project (assets not in the SWF file)

I have an application that uses significant resources (XML - 'assets' files) which are lazy-loads (if necessary).

I use several "OSMF support library projects and mapping, so I am familiar with these methods."

My workflow will be MUCH easier if I can put my goods outside my application project (may be shared between many applications).

I don't like if they reside in something like a library project, or if they are just on the file system.  I need, of course, to be able to export a release for a webserver (Apache).

Oz

It's probably in the properties of the project somewhere, I just don't know where.

Two approaches:

1. create a folder says, c:\shared_assets. In all the projects that you want to use them, you could add c:\shared_assets on the source path through project-> Flex Build Path-> Source path properties.

OR

2. you can use the embed directive to embed any file and access its content:

[Embed(source="test.xml")]
var testXml:Class;

private function init(): void {
  var xml:XML = testXml.data as XML;
  Alert.show(xml.toXMLString());
}

Create a library project. In this, create a class with static public constant in these objects of the class.

Tags: Flash Builder

Similar Questions

Maybe you are looking for