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

backGroundImage referenced via URL results in runtime error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: BorderContainer
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Add a Border control to an MXML doc and assign an image URL to it's backGroundImage property:

      <s:Border height="200" width="200" backgroundImage="flowers.jpg">
      </s:Border>

      2. Compile/run.

      Actual Results: Runtime error:

      ReferenceError: Error #1065: Variable jpg is not defined.
      at global/flash.utils::getDefinitionByName()
      at mx.graphics::BitmapFill/set source()[E:\dev\trunk\frameworks\projects\framework\src\mx\graphics\BitmapFill.as:541]
      at spark.skins.spark::BorderSkin/updateDisplayList()[E:\dev\trunk\frameworks\projects\spark\src\spark\skins\spark\BorderSkin.as:191]
      at mx.core::UIComponent/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:8017]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1069]

      Expected Results: Image is displayed.

      Workaround (if any): Embed the image in the SWF instead.
      <s:Border height="200" width="200" backgroundImage="@Embed(source='flowers.jpg')">

      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: