2

Constructing and Sharing ActionScript

Loading and Unloading Movies

To play additional movies without closing the Flash Player, or to switch movies without loading another HTML document, use the Load Movie action. The Unload Movie action removes a movie previously loaded by the Load Movie action. Not only can it be used to incrementally load sections of large Flash projects, but it can be used to manage code revisions by loading SWFs that only contain code.

To load a movie:

  1. Create a new file and place a button in the middle of it. Select the button and choose Window>Development Panels>Actions to display the Actions panel. This example assumes Normal Mode is selected.
  2. In the Toolbox list, click the Actions>Browser/Network category to display ...

Get Understanding Flash MX 2004 ActionScript 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.