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

Cannot use a SWF in spark image control

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Spark: Image
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:
      1. Assign the source property of a spark image control to a swf file.

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <!-- mx:Image works -->
      <!--<mx:Image source="bluePentagon.swf" /> -->

      <!-- s:Image fails -->
      <s:Image source="bluePentagon.swf" />
      </s:Application>

      Actual Results:
      TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@c8546d1 to flash.display.Bitmap

      Expected Results:
      SWF should display on screen like mx:Image

      Workaround (if any):

      Alex discusses a possible workaround in http://forums.adobe.com/thread/911913

      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: