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

[MovieClipSWFLoader] autoStop=true does not stop a movie after it is loaded when the source is a MovieClip from a CS5 swc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • mx: SWFLoader
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Place the attached swc in the libs directory of your Flash Builder project.
      2. create an Application using a movieClip from the swc as the source of a MovieClipSWFLoader.
      <?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" minWidth="955" minHeight="600">

      <fx:Script>
      <![CDATA[

      private function getCurrentFrame(): void

      { frameLabel.text = "currentFrame: " + String(myMovie.movieClip.currentFrame); }

      ]]
      >
      </fx:Script>
      <s:MovieClipSWFLoader id="myMovie" source="

      {MovClip1}

      " autoStop="true"/>
      <s:Button x="81" y="41" label="play" click="myMovie.play();getCurrentFrame()"/>
      <s:Button x="170" y="41" label="stop" click="myMovie.stop();getCurrentFrame()"/>

      <s:Label x="483" y="41" text="currentFrame:" id="frameLabel"/>
      </s:Application>

      Actual Results: Even though autoStop=true, the movie is playing upon load.

      Expected Results: The movie should stop.

      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: