Home | | Internet & World Wide Web HOW TO PROGRAM | | Internet Programming | | Web Programming | Adding Sound and Text Objects to the Movie

Chapter: Internet & World Wide Web HOW TO PROGRAM - Rich Internet Application Client Technologies - Adobe Flash CS3: Building an Interactive Game

| Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail |

Adding Sound and Text Objects to the Movie

we add sound and text to our movie. Add a keyframe to frame 2 of the Text layer and drag the text symbol from the Library onto the stage.

Adding Sound and Text Objects to the Movie

 

Next, we add sound and text to our movie. Add a keyframe to frame 2 of the Text layer and drag the text symbol from the Library onto the stage. Note that the text object, like the ball, is represented by a small white dot. This dot will not appear when the movie is viewed. Position the text symbol in the center of the stage at coordinate (275, 200), and name the instance text. Then, add a keyframe to the second frame of the Sounds and ScoreText layers, and add an instance of the sound and scoreText objects, respectively. Center both objects on the stage and give them instance names matching their symbol names—sound and scoreText. Lock these three layers by clicking the lock/unlock selector (dot) to the right of the layer name in the timeline (Fig. 17.14). When a layer is locked,

 


its elements are visible, but they cannot be edited. This allows you to use one layer’s ele-ments as visual references for designing another layer, while ensuring that no elements are moved unintentionally. To unlock a layer, click the lock symbol to the right of the layer name in the Timeline.

 

All the necessary sound and text capabilities have now been added to the game. In the next section, we add the time counter to the game.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.