User Guide
Loading external content into screens (Flash Professional only) 1073
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 slide’s 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();
}
Referencing loaded screens with ActionScript
The Loader class creates an internal movie clip named contentNode into which it loads the
SWF or JPEG file specified by the
contentPath property. This movie clip, in effect, adds an
extra screen node between the “placeholder” slide (that you created in the “master”
presentation above) and the first slide in the loaded slide presentation.
For example, suppose the SWF file created for the Speaker_1 slide placeholder (see above
illustration) had the following structure, as shown in the Screen Outline pane:
“Speaker 1” SWF file slide presentation structure