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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound Control Bar

Status
Not open for further replies.

Bkster

Technical User
Jan 25, 2002
94
US
This is probably easy but I know just enough about Flash to be dangerous. I am producing an online tutorial and have produced MP3's to go with each page. It is basically reading what is on the page. What I need is a control with two buttons on it to stop the MP3 and one to play the MP3. I have been able to import the MP3 and have it embedded in the page with no controls so it loads and plays when the page is opened. I have tried the Flash Help but have not found exactly what I am looking for. Thanks for the help.

Brian
 
put this in action frame:
segement1=new Sound();
segement1.attachSound("symbolNameForSound"); //make sure you set the linkeage for the sound symbol
//playSound is instance name of button to play
playSound.onRelease=function(){
segement1.start();
}

stopSound.onRelease=function(){
segement1.stop();
}

 
Everything you ever wanted to know about sound, but were afraid to ask!


Regards,

cubalibre2.gif
 
Thanks everyone for the info. I will give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top