In my job I'm embedding SWF files into HTML documents all the time. I often asked myself a few things:
Is it scaleMode="noscale"
or scale="noscale"
? And are the values case-sensitive? I saw a few code snippets like scale="noScale"
etc.
How is the syntax in ActionScript? Is it the Camelcase noScale
? I don't care about the HTML standards I'd just like to know how it is from the Flash developers perspective.
Anyone has a clue? I checked Google a lot of times but I have never found something like a conformance description. I just found the Adobe page that describes the parameters and values but that does not answer any of my questions.
Thanks a lot! :)
Found answer in Google in 3 seconds:
scale - Possible values: showall, noborder, exactfit, noscale. Specifies how Flash Player scales SWF content to fit the pixel area specified by the OBJECT or EMBED tag. default (Show all) makes the entire SWF file visible in the specified area without distortion, while maintaining the original aspect ratio of the movie. Borders can appear on two sides of the movie. noborder scales the SWF file to fill the specified area, while maintaining the original aspect ratio of the file. Flash Player can crop the content, but no distortion occurs. exactfit makes the entire SWF file visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur. noscale prevents the SWF file from scaling to fit the area of the OBJECT or EMBED tag. Cropping can occur.
Edit: I think case-sensitivity depends on the browser, but following xhtml standards you should always use lowercase.
Edit2: scaleMode
on the other hand is a property of Stage
object in ActionScript
, so it is used to set scale mode in SWF movie, that is not embeded. When you embed the swf, that param is overriden with what you've set up in your HTML.