SWF Scaling, Cropping, and Alignment

When embedding a SWF, there are a two parameters that control how it scales, crops, and aligns within the available width and height.

  • scale: Specifies the scaling method and/or cropping of display objects drawn outside of the dimensions of the object containing the SWF.
scale Parameter Scaling Effect Cropping Effect
showall Proportional No
noborder Proportional Possible
exactfit Stretch No
noscale No Possible
  • salign: Specifies where the scaled SWF is positioned within the dimensions of the object that contains the SWF.
salign Parameter Horizontal Alignment Vertical Alignment
(None Specified) Center Center
tl Left Top
t Center Top
tr Right Top
r Right Center
br Right Bottom
b Center Bottom
bl Left Bottom
l Left Center

“salign” is often confused with the HTML object tag’s “align” attribute. However, “align” is actually the same deprecated HTML attribute applied to <img>, <object>, and <applet> tags.

About Mike Wach

adobe shinobi in training
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>