14 Replies Latest reply on Aug 22, 2009 2:41 PM by Flex harUI

    SWFLoader problem in ViewStack?

    HermanDesmet

      Hello,

       

      I'm trying to display a swf-movie in a canvas within a viewstack. Without the viewstack it works fine:

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Canvas width="860" height="514">
           <mx:SWFLoader width="860" height="514" source="paleis_860.swf" />
      </mx:Canvas>
      </mx:Application>

       

      The swf-file I want to load is a simple 360°VR panorama I made and is 860*514pixels.

       

      I want to build a simple menu so I can let the visitor choose what panorama he gets to see. Thats why I want to use a viewstack:

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:ViewStack
      width="860" height="514">

           <mx:Canvas width="860" height="514">

                <mx:SWFLoader width="860" height="514" source="paleis_860.swf" />

           </mx:Canvas>

      </mx:ViewStack>

      </mx:Application>

      When I run the sample above, my whole screen is blown up by the swf, it seems to have zoomed 500 times or something. Do you guys have the same problem? Or is there some kind of workaround for it?

       

      Kind regards,

      Herman

       

      PS: for testing purposes I attached the swf.