Slide.revealchild - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
In this example, the label of a Button component named
of the previous slide in the presentation. If there is no previous slide—that is, if
mySlide.previousSlide
the beginning of this slide presentation.
if (mySlide.previousSlide != null) {
previousButton.label = "Previous slide: " + mySlide.previous._name + "
> ";
} else {
previousButton.label = "You're at the beginning of this slide
presentation.";
}
See also
Slide.gotoPreviousSlide()

Slide.revealChild

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
on(revealChild) {
// Your code here.
}
Description
Event; broadcast each time a child slide of a slide object changes from invisible to visible. This
event is used primarily to attach "in" transitions to all the child slides of a given slide.
Example
When attached to the root slide (for example, the presentation slide), this code displays the
name of each child slide as it appears.
on(revealChild) {
var child = eventObj.target._name;
trace(child + " has just appeared");
}
1168
Slide class (Flash Professional only)
is
—the button's label is updated to indicate that the user is at
null
,
Slide.nextSlide
displays the name
previousButton

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents