A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [Resolved] [Resolved] [Resolved] changing resolution

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    4
    When I make a webpage containing a swf file that is too big for some screen resolutions, The swf does not shrink in size, displaying all of it's contents. How do I make the swf file automaticly change when it is vieuwed in different resolutions ?

  2. #2
    After exporting your swf edit the html code
    and change the width and height from pixels
    to percentages of page width ..
    cheers
    blurb

  3. #3
    Junior Member
    Join Date
    Aug 2000
    Posts
    4
    this is the html code, what do I have to change ?<html>
    <head>
    <title>SWiSH [sirene.swi]</title>
    </head>
    <body bgcolor="#FFFFFF">
    <center>
    <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
    ID=sirene WIDTH=400 HEIGHT=100 align="middle">
    <param name="_cx" value="10583">
    <param name="_cy" value="2646">
    <param name="Movie" value>
    <param name="Src" value>
    <param name="WMode" value="Window">
    <param name="Play" value="-1">
    <param name="Loop" value="-1">
    <param name="Quality" value="AutoHigh">
    <param name="SAlign" value>
    <param name="Menu" value="-1">
    <param name="Base" value>
    <param name="Scale" value="ShowAll">
    <param name="DeviceFont" value="0">
    <param name="EmbedMovie" value="0">
    <param name="BGColor" value>
    <param name="SWRemote" value><embed src="sirene.swf" quality="autohigh" bgcolor="#FFFFFF" wmode="transparent" WIDTH="400" HEIGHT="100" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </OBJECT>
    </center>
    </body>
    </html>


  4. #4
    As mentioned the width and the height ........
    so where it says
    WIDTH=400 HEIGHT=100
    change to whatever % you want ..

    So if you are targeting a 800x600 window size
    and your movie you want to be 400x100 on a 800x600 screen
    then change the width and height to
    WIDTH=50% HEIGHT=17% or close to that anyway ..

    I think you have to change both places
    where it says width and height in your code.

    So on a 640 wide screen the same movie should resize down
    to 320 wide .. well thats in therory off the top of
    my head

    cheers
    blurb

  5. #5
    Another thing you can do, filipv, is to just point your links to the .swf file instead of using the .html file that the Publish command creates. This way, the Flash plugin will do the sizing for you. Of course, only do this if you want full window viewing though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center