Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile this FXG:
<?xml version='1.0' encoding='UTF-8'?>
<Graphic xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns="http://ns.adobe.com/fxg/2008" version="2.0">
<BitmapImage source="foo.jpg"/>
</Graphic>
Actual Results:
It fails to compile because it is trying to embed foo.jpg.
Add foo.jpg. Now it works.
Expected Results:
This is not legal FXG, according to the spec:
For both [BitmapImage] and [BitmapFill] elements, the source image data is defined using the source attribute. The source attribute is a required attribute.
The source attribute is specified using an @Embed directive. The format is:
source="@Embed('<imageFileName>')"
Workaround (if any):