Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26553

FXG compiler allows BitmapImage="<non-embedded path>", contradicting spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • FXG - Static
    • 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):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: