2 Replies Latest reply on May 22, 2009 2:23 AM by Vj3k0

    Embed swf change Stage.scaleMode

    bamben

      Is it possable To change the scale mode of a swf in the html embed code?

       

      my problem: I have the popular free flash game 'metal slug' as a swf, Its too large and wont resize as it was exported by who ever made it to preserve aspect ratio....

       

      Ive been trying all day to get it to resize but it wont:

       

      <div id="Nested" style="position:absolute; left:22px; top:32px; width:400px; height:300px; z-index:1;">

        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="400" height="300">

          <param name="movie" value="metal_slug.swf">

      <param name="scale" value="exactFit">

          <param name="quality" value="high">

      <param name="flashvars" value="Stage.scaleMode=exactFit">

          <embed src="metal_slug.swf" scale="exactFit" flashvars="Stage.scaleMode=exactFit" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="300"></embed>

        </object>

       

      I have tryed lots of different things including trying to tell the swf through flashvars to be 400 by 300, Ive tryed to decompile it and re-export it with sothink but that didnt work as its no longer reconised any of the game sounds, text, and didnt load any more (tryed and tryed)

      I have searched and searched all through google but this swf still refuses every thing i try!

       

      please can some one show me how to resize this swf?