how to resize the created swf file?
Copy link to clipboard
Copied
Dear all,
I have one problem with my swf file which I created, I created the file useing the dimentions 1024x768, for pc I need these mentions... the same swf file I want to use it in some other divise which will support only 480x272 dimentions... so, without creating the same file with these dimentions, is there any posible way to resize the swf file while publishing... and the devise which I want to play the swf file it will support only swf format... so, please help me on the same.....
Thanks in advance...
Thanks and Regards
Santhosh Kumar.M
Copy link to clipboard
Copied
swf files will normally size themselves to whatever environment is defined for them. If you open an swf directly it will normally resize to fit proportionally in the viewing area. So if your other device is opening the swf and not using an html page, then it might already do what you hope for. If it is opening the swf into an html page, then you can also set the dimensions to whatever you like in the html embedding code.
Copy link to clipboard
Copied
Yes you can shrink the .swf to fit the display window but the two set of dimensions you mentioned have different aspect ratios, the 1024 is 4:3, while the 480 is a 16:9 device. If you use exact fit to squeeze the larger .swf into the smaller dimensions exactly, it will be distorted, squished down more that it should be.
Perhaps a better solution would be to just set a width to fit the screen and let the height be set by the aspect ratio... which Flash will try to do unless told otherwise.
So squeezing your large .swf in the smaller window would display at 480 x 360..... so it's going to have to scroll...
To see a little more about aspect ratios (it also covers scaling in HTML...but notice how aspect ratio is/is not maintained)... an old post :
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
Best wishes,
Adninjastrator

