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

Resources stored in SWC are stripped from the SWF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • MXML Compiler
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a SWC and embed a resource using the [Embed(src="...")] metadata
      2. Compile the SWC. The resource is imbedded inside the zipped SWF.
      2. Create an Air application that makes use of the SWC.
      3. Compile and the application. The resource referred by the Embed metadata has not been included.

      Actual Results:
      The resource is not included

      Expected Results:
      The resource should have been included

      Workaround (if any):
      Copy the code and resource into the SWF project, and compile as a single project instead of using a SWC

      I've attached an archive containing three file.
      MeteorMinerAir.swf - Contains the compiled application that is causing me headache. The code works, but the ship asset does not display.
      MeteorMinerLib.swc - The library that contains Assets.as, Ship.as and ship.png. This is merged with MeteorMiner.swf.
      MeteorMinerAirWorking.swf - I compiled this one by copying the code and assets into the MeteorMinerAir.swf, and removing the reference to the swc. No changes were made to the code. This one loads the ship.png asset correctly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: