User Guide

652 Chapter 6: Components Dictionary
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
contentPath property to one of the SWF files. The master slide presentation could be arranged
as shown in the following illustration:
“Master” SWF 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
contentPath
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;
By default, when you set a slide’s contentPath property while authoring in the Property
inspector, or using ActionScript (as shown above), the specified SWF file loads as soon as the
master presentation” SWF file has loaded. To reduce initial load time, consider setting the
contentPath property in an on(reveal) handler attached to each slide.
// Attached to Speaker_1 slide
on(reveal) {
this.contentPath="speaker_1.swf";
}
Alternatively, you could set the slides autoLoad property to false. Then you could call the
load() method on the slide when the slide has been revealed. (The autoLoad property and the
load() method are inherited from the Loader class.)
// Attached to Speaker_1 slide
on(reveal) {
this.load();
}
Opening statement slide
Presenter placeholder slides