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
property to one of the SWF files. The master slide presentation could be arranged
contentPath
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
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
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
property in an
contentPath
// Attached to Speaker_1 slide
on(reveal) {
this.contentPath="speaker_1.swf";
}
Alternatively, you could set the slide's
method on the slide when the slide has been revealed. (The
load()
method are inherited from the Loader class.)
load()
// Attached to Speaker_1 slide
on(reveal) {
this.load();
}
652
Chapter 6: Components Dictionary
Opening statement slide
Presenter placeholder slides
property while authoring in the Property
contentPath
handler attached to each slide.
on(reveal)
property to
autoLoad
contentPath
. Then you could call the
false
property and the
autoLoad
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?