Hi,
Using the .swf in an HTML page gives you a few advantages. You can use detection scripts in the HTML page to detect the users player version and promt if an update is needed. You can use flashvars to pass external variables into a flash movie, and you can use javascript in the HTML page to communicate with the .swf file. Linking directly to the .swf file is usually not the best practice simply because it limits these abilities.
As to scaleing, look into the scalemode methods for flash files. You can control the scalemode of a .swf file whether or not it is embedded in an HTML page.....
showAll (Default)
makes the entire Flash content visible in the specified area without distortion while maintaining the original aspect ratio of the. Borders can appear on two sides of the application.
noBorder
scales the Flash content to fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.
exactFit
makes the entire Flash content visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur.
noScale
makes the size of the Flash content fixed, so that it remains unchanged even as the size of the player window changes. Cropping may occur if the player window is smaller than the Flash content.
Note: the default setting is showAll, except when in test movie mode, where the default setting is noScale
Stage.scaleMode="noScale"
A mind once stretched by a new idea never regains its original dimensions.
- Oliver Wendell Holmes
Bookmarks