Tom Chiverton-2 wrote:
> 
> On Tuesday 10 October 2006 00:25, Iko Knyphausen wrote:
>>     [Embed(source="layout1.png")]
>> The image file resides in the same directory as the SWF (and it is
>> reading
> 
> It is embedded at compile time.
> The image file therefore needs to be in the same directory as the MXML
> source.
> 

We are having an issue with embedded images when using the compc
command-line compiler to generate an .swc for a bunch of library classes. 
Our directory structure is like this:

(some directory structure)/flexprojects/MyLib/src/ (flex packages and
classes here)
(some other directory structure)/myapp.war/image/ (image files here)

note that myapp.war is an exploded directory structure (in other words, it's
a directory whose contents would normally be zipped into a file named
myapp.war for deployment on an application server).

When we use the Adobe Flex Builder IDE to build the .swc file, it is able to
reference them properly, but I'm struggling with the command-line version
(we use it for the Ant-based build process).  After reading this post, I
tried as an experiment to copy the entire image/ directory into the
MyLib/src directory and compiling, and it worked.  It looks like there
should be some compc option or argument that would allow me to let compc
know about the location of the image files, but the closest I could find was
include-file which is too limiting (I would have to include over 300 image
files, and if a new file is added we would have to manually update the list
of images).  Is there some other way to get this done?
-- 
View this message in context: 
http://www.nabble.com/unable-to-resolve-%27image-filename%27-for-transcoding-tp6728875p24873502.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to