1 Reply Latest reply on Apr 4, 2007 4:43 PM by jonnybennett

    active content update

    jonnybennett Level 1
      I have downloaded and installed the active content update to publish my flash.
      However I can't get the swf to be center aligned to the browser. I can get it left and right, but not center.
      the part of the code that holds the details on the swf are as follows.... PLease note this is how it default publishs when you ask for it to be center aligned in the publish settings.

      'codebase', ' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
      'width', '950',
      'height', '650',
      'src', 'stage185',
      'quality', 'high',
      'pluginspage', ' http://www.macromedia.com/go/getflashplayer',
      'align', 'middle',
      'play', 'true',
      'loop', 'true',
      'scale', 'showall',
      'wmode', 'window',
      'devicefont', 'false',
      'id', 'stage185',
      'bgcolor', '#00ff00',
      'name', 'stage185',
      'menu', 'true',
      'movie', 'stage185',
      'salign', 'center'

      You would have thought that perhaps the
      'align', 'middle',
      should infact be
      'align', 'center',
      but this doesn't work. However if you change it to right it right aligns the movie.. how do you centeralise it?

      Many thanks to any responders.
        • 1. active content update
          jonnybennett Level 1
          15 seconds later I find the answer on the forum!!!!! sorry.
          Thanks 'ggshow'..
          HOW TO CENTER you swf using active content update...

          <script language="JavaScript" type="text/javascript">
          var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
          // -->


          You can just add center tag to it: