26 August 2010
26 August 2010
When specifying the Adobe Flash Professional publish settings for SWF files, you can select a Window Mode option, which controls the HTML
wmodeattribute in the
embedtags. The Window Mode modifies the relationship of the content bounding box or virtual window with content in the HTML page as described in the following list:
- Window (default setting): Does not embed any window-related attributes in the
embedtags. The background of the content is opaque and uses the HTML background color. The HTML code cannot render above or below the SWF content.
- Opaque Windowless: Sets the background of the SWF content to opaque, obscuring anything under the content. Lets HTML content appear above or on top of the content.
- Transparent Windowless: Sets the background of the SWF content to transparent, allowing the HTML content to appear above and below the content. For browsers that support windowless modes, see Parameters and attributes for object and embed tags in the Flash documentation.
Note: For people who utilize assistive technologies such as screen readers, accessibility requires that Flash Player have a window (a screen reader gets no data if there is no window). Neither the Opaque nor the Transparent Windowless setting presently allows communication between the player and assistive technologies.
If you turn on Hardware Acceleration in the Flash tab of the Publish Settings dialog box, the Window Mode you select is ignored and it defaults to the Window setting.
For a demonstration of setting the Window Mode, see the TechNote titled Create a transparent background in a SWF file.
Note: In some cases, complex rendering in Transparent Windowless mode can result in slower animation when the HTML images are also complex.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
More Like This
- Using SWC files to build large Flash and AIR projects with multiple SWF files for iOS
- Joining multiple SWF files into one SWF for iOS deployment
- Creating an accessible animated presentation in Flash
- Creating a simple document in Flash CS4 Professional
- Flash glossary: Tab order
- Creating your first Flash Professional CS6 document
- Creating your first Flash Professional CS5 document