2 Replies Latest reply on Aug 11, 2009 5:22 AM by DHL83

    Adobe AIR not playing sound from swf, but Flex-app in browser does. Why?

    DHL83

      Hi

      Why won't Adobe AIR play the sound in an swf animation I've got? It plays perfectly as an Flex Application in a browser.

       

      This works good (Animation is shown and sound is played):

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:SWFLoader id="testLoader" source="niceview.swf">
      </mx:SWFLoader>
      </mx:Application>

       

      This does not work: (Animation is shown BUT sound is NOT played):

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="500" height="400">
      <mx:SWFLoader id="testLoader" source="niceview.swf">
      </mx:SWFLoader>   
      </mx:WindowedApplication>

       

      I started out loading the swf from the filesystem, which is what I want to accomplish, but in this test the "niceview.swf" is located inside the source folder and therefore sandbox-violations should not be the issue here, right?