1 Reply Latest reply on Jun 29, 2011 6:03 AM by rob day

    SWF export positioning in web page

    Macnimation Level 1

      Hi,

       

      I have some questions about the SWF version of the Indesign Files.

       

      I would like a bit more control on how it sits in a webpage if possible.

       

      If I export as normal, the SWF file sits in the top left side of the page.

       

      If I export and tick the box to include the pagecurl feature, it sits in the middle of the page.

       

      Is it possible edit the setings to get the swf file to be centred on a page without the pagecurl option?

       

      If I open the generated html file in Dreamweaver the page is basically blank.

       

      Would the only option be to import the SWF file into a blank page and center it using tables?

        • 1. Re: SWF export positioning in web page
          rob day Adobe Community Professional & MVP
          If I open the generated html file in Dreamweaver the page is basically blank.

           

          Are you looking at the code? Unless something has changed with CS 5.5 you should see the javascript that loads the swf at the top of the page in the DW code view. Look at the bottom for the load parameters:

           

              AC_FL_RunContent(
                  'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,2,0',
                  'width', '1000',
                  'height', '700',
                  'src', 'Untitled-2',
                  'quality', 'high',
                  'pluginspage', 'http://www.adobe.com/go/getflashplayer',
                  'align', 'middle',
                  'play', 'false',
                  'loop', 'false',
                  'scale', 'noscale',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'Untitled-2',
                  'bgcolor', '#999999',
                  'name', 'Untitled-2',
                  'menu', 'true',
                  'allowFullScreen', 'true',
                  'allowScriptAccess','sameDomain',
                  'movie', 'Untitled-2',
                  'salign', ''
                  );

           

          The page curl version doesn't really center the swf object, it just makes the width and height parameters larger than the page, which creates a top and left background border. If you want to center the swf inside the browser window you'll need to add a table or divs

           

          This page defines the embed parameters:

           

          http://kb2.adobe.com/cps/127/tn_12701.html