Flash Builder 4 Sharing file among applications

Nov 30th, 2010 | Posted by Michael

Typically, you do not develop a single application in isolation from all other applications.
Your application shares files and assets with other applications.

following step show you how to make a linking

For example you have one directiry (c:ShareThingflex4funimage) want toshare among many application

step 1:

Window > Preferences >General > Workspace > Linked Resources

Click new > Create one new path variable (in my case “img”) and select folder c:ShareThing

Now you got a Linked Resources path variable call “img”

Right click your Flex project and choose Properties

Properties > Flex Build Path > Source path > Add Folder  Entry ${img}

then you will see you have one new source path like following

Then you can use the Linked Resources like this

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   minWidth="955"
			   minHeight="600">
	<mx:Image source="flex4funimage/football.jpg"/>
</s:Application>

Check your bin-debug  ,you will find the directory flex4funimage and football.jpg was there.

Originally posted 2010-07-16 04:54:28.

No comments yet.
*

Popular Arichives