Welcome, Guest
  • Author Topic: Auto Resizing..  (Read 2651 times)

    Silent

    • Jr. Programmer
    • **
    • Posts: 74
      • View Profile
      • Ali Roman Khan Shirani
      • Email
    Auto Resizing..
    « on: 06/18/02, 05:41 »
    Hi...I have got the code for autoresozing the .SWF according to browser...Even if it is in 800*600 or 1024*768....But it only works on Hard Disk...It does not work on servers..It does not display anythig...May be you can help me....

    main-bak2.swf the Filename...it works well on my Hard Disk....

    here is the code..

    html>  
    <head>  
    <title>home</title>  
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
    </head>  

    <body bgcolor="#FFFFFF">  
    <div align="center"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c ab#version=4,0,2,0" width="100%" height="35" align="top">  
    <param name=movie value="main-bak2.swf">  
    <param name=quality value=high>  
    <param name="SCALE" value="exactfit">  
    <embed src="main-bak2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod _Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="35" align="top" scale="exactfit">  
    </embed>  
    </object> </div>  
    </body>  
    </html>


    Ali Roman Khan Shirani....

    dateye

    • Guest
    Re:Auto Resizing..
    « Reply #1 on: 08/16/02, 10:35 »
    i used the 100% on the Width and it almost solved my problem the only thing is that i now need to hight to always be like half of the width so if anybody can help me with this then i'm a happy man :D

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:Auto Resizing..
    « Reply #2 on: 08/19/02, 04:44 »
    Didn't read this post that carefully,

    But Ali, try using this for your Body Tag:

    <body bgcolor=#FFFFFF topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0>

    Gets rid of any extra margins.

    Flash-DB