3 Replies Latest reply on Aug 17, 2009 6:14 AM by kkc_mca

    Embeding swf in html

    Fis Forums

      Hi

       

      I have embeded my swf file in to a html file, i am getting my output in screen but there is a border which makes my swf to set in center of page and equal border in screen around the swf output

       

       

      Can u help me how to make my swf file in full screen height and width as per without any border around

       

      Here is my code :

       

       

      <html>
      <head>
      <title>PROJECT</title>
      <link rel="shortcut icon" href="<%=request.getContextPath()%>/imgs/login/favicon.ico" >
      </head>

      <body>

      <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
      width="1000px" HEIGHT="800px" id="Charting">
      <param name=movie value="<%=request.getContextPath()%>/pages/flexreportlogin/flexreportlogin.swf">
      <PARAM NAME=quality VALUE=high>

       

      <EMBED src="<%=request.getContextPath()%>/pages/flexreportlogin/flexreportlogin.swf" quality=high width="1000px" HEIGHT="800px"
      NAME="Charting" ALIGN="" TYPE="application/x-shockwave-flash"
      PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
      </EMBED>

      </OBJECT>

      </body>
      </html>

        • 1. Re: Embeding swf in html
          kkc_mca Level 2

          your are fixing the width and height of the swf as below

           

          width="1000px" HEIGHT="800px"

           

          can you send the html link, so that i can help

           

          If this post answers your question, please mark as such

          • 2. Re: Embeding swf in html
            Nishant28 Level 1

            Please note the places that have been colored pink.

            Fis Forums wrote:

             

            Hi

             

            I have embeded my swf file in to a html file, i am getting my output in screen but there is a border which makes my swf to set in center of page and equal border in screen around the swf output

             

             

            Can u help me how to make my swf file in full screen height and width as per without any border around

             

            Here is my code :

             

             

            <html>
            <head>
            <title>PROJECT</title>
            <link rel="shortcut icon" href="<%=request.getContextPath()%>/imgs/login/favicon.ico" >
            </head>

            <body>

            <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0"
            width="1000px" HEIGHT="800px" id="Charting">
            <param name=movie value="<%=request.getContextPath()%>/pages/flexreportlogin/flexreportlogin.swf" >
            <PARAM NAME=quality VALUE=high>

             

            <EMBED src="<%=request.getContextPath()%>/pages/flexreportlogin/flexreportlogin.swf" quality=high width="1000px" HEIGHT="800px"
            NAME="Charting" ALIGN="" TYPE="application/x-shockwave-flash"
            PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
            </EMBED>

            </OBJECT>

            </body>
            </html>

             


             

            Change height and width at both places to 100%.

            • 3. Re: Embeding swf in html
              kkc_mca Level 2
              we set the full screen mode of ths swf by setting the displayState property 
              of stage as given below

              // full-screen in AS3
              stage.displayState = StageDisplayState.FULL_SCREEN;
              
              // Exit  mode in AS3
              stage.displayState = StageDisplayState.NORMAL;

               

               

              If this post answers your question or help, please mark it as such.