Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

FlashSound API: The Sound of Invisible Flash  : Page 3

Learn to use Flash to add interactive sound to your Web pages.


advertisement
Create a Sound-Only Movie: Set the Stage
After you prepare your library, the next step to create a sound-only movie is to add your movie clips to the stage. To interactively control a movie clip, it must be on the stage and have a unique "instance name." Each movie clip on the stage is a container for sound.To add a movie clip symbol to the stage, drag it from the library window to the stage. Your stage should show a small circle, which is how Flash represents movie clips without graphics (see Figure 5).

Figure 6.
Select the circle and then type an instance name in the Instance Panel. A valid instance name must not have spaces, must not start with a number, and should be unique. Choose an instance name that is similar to the sound it will contain. You will use this instance name, later on, to control sound playback with the FlashSound API (see Figure 6)Create a Sound-Only Movie: Add Sound
After you add a movie clip to the stage and give it a unique instance name, you can begin to add sound. Each movie clip on the stage is a container for sound. You add sound to a movie clip by viewing the movie clip's timeline and attaching sound to certain frames within the timeline. Timelines are created automatically by the API and you need not alter the structure of these timelines except to attach sound to specific frames..

Double click a circle on the stage. You should now see the pre-built timeline for this movie clip. The only change you make is to add the same sound to (for example) frames 5, 10 and 11 (see Figure 7).

Figure 9.
Click in frame 5 of the Sound Layer and choose a sound from the Sound Panel. Set this sound to "stop" under the sync options. Flash displays a black square for sounds set to "stop" sync (see Figures 8 and 9).


Click in frame 10 of the Sound Layer and choose the same sound as frame 6. Set this sound to "stop" sync also.Add the same sound to frame 11 of the Sound Layer and set the sound to event or start sync in the Sound Panel. You should now see the wave form of the sound starting in frame 11 (see Figures 10 and 11).

Tip: To see the entire wave form of your sound, click the last white frame in the Sound Layer and drag it to the right.
Congratulations! You just created a sound-only movie clip. For technical information on how this sound-only movie clip works, read Flash Interactive Sound Design.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date