Loading External Content Into Screens (Flash Professional Only) - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Loading external content into screens
(Flash Professional only)
The Screen class extends the Loader class (see
you easily manage and load external SWF and JPEG files. The Loader class contains a
property, which specifies the URL of an external SWF or JPEG file, or the
contentPath
linkage identifier of a movie clip in the library.
Using this feature, you can load an external screen tree (or any external SWF file) as a child of
any screen node. This provides a useful way to make your screen-based media modular and
divide it into separate SWF files.
For example, suppose you have a slide presentation in which three people are each
contributing a single section. You could ask each presenter to create a separate slide
presentation (SWF file). You would then create a "master slide presentation" that contains
three placeholder slides, one for each slide presentation being created by the presenters. For
each placeholder slide, you could point its
The master slide presentation could be arranged as shown in the following illustration:
"Master" SWF file slide presentation structure
Suppose presenters provide you with three SWF files, speaker_1.swf, speaker_2.swf, and
speaker_3.swf. You could easily assemble the overall presentation by setting the
property of each placeholder slide, either using the Property inspector or ActionScript, as
shown in the following code:
Speaker_1.contentPath = speaker_1.swf;
Speaker_2.contentPath = speaker_2.swf;
Speaker_3.contentPath = speaker_3.swf;
1072
Screen class (Flash Professional only)
"Loader component" on page
contentPath
Opening statement slide
Presenter placeholder slides
813), which lets
property to one of the SWF files.
contentPath

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents