Accessibility
 
Home > Products > Flash > Support > Building Applications
Flash Icon Macromedia Flash Support Center - Building Applications
Examine the sample Macromedia Flash movie

The sample movie slideshow.fla contains "placeholders" for the slide show's content and ActionScript that merges the content of each slide with those placeholders. The placeholders consist of dynamic text fields (to display the current slide's index, for example) and an empty movie clip instance into which each JPEG image is loaded.

1 In Macromedia Flash MX, choose File > Open. Navigate to the slideshow folder you downloaded and open slideshow.fla.
2 Open the Property inspector, if not already open, by choosing Window > Properties.
3 Select the dynamic text field surrounded by the dashed line at the top-left part of the Stage. In the Property inspector, note the variable name of currentIndex assigned to that text field.

This text field displays the index of the current slide. ActionScript in the sample movie updates its value each time the user navigates between slides.

4 Select the other text fields on the Stage in turn. Note the variable names totalSlides and slideText assigned to them in the Property inspector.
These text fields are also updated with ActionScript as the movie plays. They display, respectively, the total number of slides and the text description for each slide.
5 Select the rectangular movie clip on the Stage where the JPEG image will appear. In the Property inspector, note the instance name targetClip assigned to that clip.
6 Select each of the navigation buttons in turn. Note the instance names next_btn and back_btn assigned to those buttons.
7 In the Timeline, select the Scripts layer. This layer contains all the ActionScript used by the Macromedia Flash movie.
8 Choose Window > Actions to open the Actions panel, if it's not already open. The ActionScript in the sample movie is discussed later in the article.
To Table of Contents Back to Previous document Forward to next document