|
-
Hello!
How do I add the sounds ("applause.mp3") and ("boo.mp3") to the following actions, please?
if (answer = = ResponseArray[a+4]) {
message = "Congratulations!";
// add "applause.mp3"
score = ++score;
} else {
message = "Too bad!";
// add "boo.mp3"
}
a = a+5;
b = ++b;
if (b = = 45 {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Thanks for your time.
J Shipton
Email me the response please:
[email protected]
-
One option..
Put the MP3's into a Blank Movie clip, then when you need them just call on the movie clip. I dont deal with sounds, I dont like sounds, so I tend to avoid sounds.
-
Senior Member
You can also do it with actionscript. Select the sounds in the library right click on each of them and select linkage. Select export this symbol and give them names "boo" and "app".
you can then call the sounds from your script by
sfx = new Sound();
sfx.attachSound("app");
sfx.start(0,1); // to look the sound once use sfx.start(0,20) to loop 20 times etc.
and for the boo sound effect
sfx = new Sound();
sfx.attachSound("boo");
sfx.start(0,1);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|