Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Noob getting very frustrated with sound files

Status
Not open for further replies.

lordhavoc1610

Programmer
Jun 24, 2007
2
US
Okay, I am very new to flash but catch on quick. However, I am having the hardest time figuring out how to insert a sound file. Please, if anyone can tell me how or refer me to a good tutorial, it would be much appreciated. Every tutorial I have found is very confusing. They are way over my head.
 
import a new sound -file-import to your library.
right click and give it a linkage name ie. "mysound".

go to first frame of your main movie and add these actions to first frame:
Code:
asound = new Sound(this);
asound.attachSound("mysound");  //this is your linkage name

Now whenever you want your sound effect to play. simply go to that frame and enter in the actions:
Code:
asound.start();
that's it
Jonathan
 
yes the kenny bellew tutorials are fantastic, clear, with examples and will cover every possible sound issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top