User Guide

Working with display objects 175
<object>
...
<param name="allowFullScreen" value="true" />
<embed ... allowfullscreen="true" />
</object>
If you are using JavaScript in a web page to generate the SWF-embedding tags, you must
alter the JavaScript to add the allowFullScreen param tag/attribute. For example, if your
HTML page uses the
AC_FL_RunContent() function (which is used by both Flex
Builder- and Flash-generated HTML pages) you should add the allowFullScreen
parameter to that function call as follows:
AC_FL_RunContent(
...
'allowFullScreen','true',
...
); //end AC code
This does not apply to SWF files running in the standalone Flash Player.
All keyboard-related ActionScript, such as keyboard events and text entry in TextFields, is
disabled in full-screen mode. The exception is the keyboard shortcuts which close full-
screen mode.
There are a few additional security-related restrictions you’ll want to understand too. These
are described in “Full-screen mode security” on page 465.
Handling events for display objects
The DisplayObject class inherits from the EventDispatcher class. This means that every
display object can participate fully in the event model (described in Chapter 13, “Handling
Events,” on page 345). Every display object can use its
addEventListener() method—
inherited from the EventDispatcher class—to listen for a particular event, but only if the
listening object is part of the event flow for that event.