User Guide

Contents 7
Loading content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Cross-scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
Accessing loaded media as data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
Loading data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
Loading embedded content from SWF files imported into a security do-
main . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Working with legacy content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
Setting LocalConnection permissions. . . . . . . . . . . . . . . . . . . . . . . . . . .481
Controlling access to scripts in a host web page. . . . . . . . . . . . . . . . . .481
Shared objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
Camera, microphone, Clipboard, mouse, and keyboard access . . . 484
Chapter 18: Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
What’s new for the PrintJob class using ActionScript 3.0 . . . . . . . . 488
Printing a page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
Flash Player tasks and system printing . . . . . . . . . . . . . . . . . . . . . . . . . 489
Setting size, scale, and orientation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Example: Multiple-page printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Example: Scaling, cropping, and responding. . . . . . . . . . . . . . . . . . . . 498
Chapter 19: Using the External API. . . . . . . . . . . . . . . . . . . . . . . . 501
About the External API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
Using the ExternalInterface class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
Example: Using the External API with a web page container . . . . . . 507
Example: Using the External API with an ActiveX container . . . . . . .514