1 Reply Latest reply on Jul 31, 2011 7:09 PM by adninjastrator

    publishing .index Vs .swf  How to make my file look like the .swf Question

    WebGuyDesign

      Hi, I currenly have a site published where the domain is reading

      www.mysite.com/index.html  (example)

       

      When I view this site the image is not centered and when I expand it in different browers it does not look good.

       

      When I view the site by looking at it through the exact location of where I have the flash, for example www.mysite.com/index.swf  It's exactly how I want it to look.

       

      Is there a code I can put into the html where I can have the same look as the .swf but view it with the .index.html

       

      For example when I am testing the .swf extension and change the size of the browers or expand it, the flash movie is always centered and looks great in every brower.

       

      I was thinking of changing the domains link to the .swf file to solve the issue, but is by having the .html extension provide greater serach information.   What is it nessary?

        • 1. Re: publishing .index Vs .swf  How to make my file look like the .swf Question
          adninjastrator Level 4

          You seem to be confusing the .swf file with the Web page that the .swf file goes on. For Internet delivery you want the index.html web page.

          You can "Publish" the page directly from Flash. Under the "File" menu, look for Publish Settings and review ALL the options before "Publishing" the swf.

          If you don't understand them, Google for that specific option.

          Also review "Flash scaling"

          Here are examples of different scaling parameters available in the Publish settings. You can also add these parameters directly in the html (<param name="scale" value="noscale"). All the examples replace the actual Flash dimensions with 100% for both width and height (width="100%" height="100%"). These examples use the old <object> and <embed> to illustrate the different ways to scale Flash. Once you understand how it works I’d recommend that you use swfobject to place the Flash in your final project.

          View the source code for each page to see the full code.

           

          http://www.cidigitalmedia.com/tutorials/scale/exact_fit.html

           

          "exactFit" scales the file to fit exactly within the confines of the screen, irregardless if the movie becomes consequently distorted. The original aspect ratio is not maintained. So round things are not round and squares are not square.

           

          http://www.cidigitalmedia.com/tutorials/scale/noScale.html

           

          "noScale" is the default setting, and causes the movie to be displayed at the originally designed dimensions.

          http://www.cidigitalmedia.com/tutorials/scale/no_border.html

           

          "noBorder" causes the movie to be scaled to what ever dimensions are needed to have no border surrounding the movie within the player, which consequently could result in some of the movie being cut off from view. In other words, the movie will maintain the original aspect ratio and will fill the screen completely. But if the movie has to be streched wider to fill both sides of the screen, it will also stretch taller, but then some of the top and the bottom of the movie may be cut off from view.

           

          http://www.cidigitalmedia.com/tutorials/scale/show_all.html

           

          "showAll" scales the movie to the size of the screen (which could cause pixelation if the file contains raster information), the difference between showAll and exactFit is that showAll mantains initial movie size proportions. Because it maintains the original aspect ratio, there can be space to the sides or the top and bottom. But everything always shows and they are not distorted. But notice the photo in the center, it becomes pixilated at larger screen resolutions.

          The trickiest part of trying to go full screen is that it’s difficult to make the Flash wider without making it taller also, that is, to maintain the correct proportions or aspect ratio of everything on the stage. These methods are just simple scaling accomplished with html. There are also methods to dynamically scale the stage and it’s elements using Actionscript… but that’s a much more complex undertaking.

          Best wishes,

          Eye for Video

          www.cidigitalmedia.com

           

          Adninjastrator