Click here to Skip to main content
15,940,271 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i add voice in intro page please explain
Posted

1 solution

Hi friend there are different method to add sound in flash,
1)Time line based
2)Using ActionScript

1)Time line Based:-
If u have MP3/Wave format sound just import it in to your flash library.
ctrl+L in key board u can see the flash library.there u wil see the sound.put new time insert key frame just drag the sound drop on stage.

2)Action Script(This is actionscript2.0):-

var my_sound:Sound = new Sound();
my_sound.onLoad = function(success:Boolean) {
if (success) {
my_sound.start();
status_txt.text ="Sound loaded";
} else {
status_txt.text ="Sound failed";
}
};
my_sound.loadSound("song1.mp3", true);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900