2 Replies Latest reply on Jul 24, 2009 7:11 AM by Ned Murphy

    How do I publish my Flash game to my website?

    Victoria Ward

      Hi Everyone

       

      This is probably a really obvious question but I can't seem to find the answer!

       

      I've created a simple drag and drop game and I would like to embed it so people can visit my website and play it.

       

      How do I do this?

       

      I would be really grateful for any help that you could give.

       

      Thank you

       

      Vicky

        • 1. Re: How do I publish my Flash game to my website?
          webqaflash Level 3

          Use yhis code for embed

           

          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                          codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
                          width="widthofyourflash( for eg 450 )"
                          height="heightofyourflash"
                          id="nameofyourflash"
                          align="middle">
                         
                  <param name="allowScriptAccess"
                         value="always" />

           

                  <param name="movie"
                         value="nameofyourflash.swf" />
                  <param name="quality"
                         value="high" />
           
                        
                  <embed src="nameofyourflash.swf"

           

                         quality="high"

           

                         width="widthofyourflash"
                         height="heightofyourflash"
                         name="nameofyourflash"
                         align="middle"
                         allowScriptAccess="always"
                       
                         type="application/x-shockwave-flash"
                         pluginspage="http://www.macromedia.com/go/getflashplayer" />
                        
              </object>

           

           

          Please replace the highlihted values with your movie specifications.

          • 2. Re: How do I publish my Flash game to my website?
            Ned Murphy Adobe Community Professional & MVP

            Your best bet for getting something made in Flash to display in a web page is to let Flash generate the embedding code, then copy and paste that code into your web page.  To get Flash to generate the embedding code, in your Publish Settings be sure to check the option to have an html output.  When you publish the file, an html page will be generated, and possibly a javascript file as well.  You can copy the section of code in the html file to your into your web page code. The javascript file, if one was created, would need to be loaded to the server along with your web page.