MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1077

Components language reference
Table of Contents

Advertisement

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()
the
method are inherited from the Loader class.)
load()
// Attached to Speaker_1 slide
on(reveal) {
this.load();
}
Referencing loaded screens with ActionScript
The Loader class creates an internal movie clip named
SWF or JPEG file specified by the
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
property while authoring in the Property
contentPath
handler attached to each slide.
on(reveal)
property to
autoLoad
property. This movie clip, in effect, adds an
contentPath
Loading external content into screens (Flash Professional only)
. Then you could call the
false
autoLoad
into which it loads the
contentNode
property and
1073

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents