Select the Presentation slide and open the Components panel.
6.
Drag a Button component from the Components panel to the bottom of the Stage.
7.
In the Property inspector, type Next Slide for the Button component's Label property.
8.
In the Actions panel, type the following code:
9.
on(click) {
_parent.currentSlide.gotoNextSlide();
}
Test the SWF file (Control > Test Movie) and click the Next Slide button to advance to the
10.
next slide.
Slide class (API) (Flash Professional only)
Inheritance
MovieClip >
Screen class (Flash Professional only)
ActionScript Class Name
The methods, properties, and events of the Slide class allow you to manage and manipulate slides.
Method summary for the Slide class
The following table lists methods of the Slide class:
Method
Slide.getChildSlide()
Slide.gotoFirstSlide()
Slide.gotoLastSlide()
Slide.gotoNextSlide()
Slide.gotoPreviousSlide()
Slide.gotoSlide()
Methods inherited from the UIObject class
The following table lists the methods the Slide class inherits from the UIObject class. When
calling these methods from the Slide object, use the form
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject.getStyle()
UIObject class
>
UIComponent class
> Slide
mx.screens.Slide
Description
Returns the specified child slide.
Navigates to the first leaf slide in the slide's hierarchy of subslides.
Navigates to the last leaf slide in the slide's hierarchy of subslides.
Navigates to the next slide.
Navigates to the previous slide.
Navigates to an specified slide.
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property
and Component inspectors.
Gets the style property from the style declaration or object.
> View >
Loader component
SlideInstance.methodName
Slide class (Flash Professional only)
>
.
695
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?