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

Sound on Button cutting off! Please Help!! 2

Status
Not open for further replies.

graphicgirl

Technical User
Mar 16, 2001
65
US
I made a button in Flash, with "roll over" color and with actions to play a sound clip when clicked on. (on release)
I put it into a Dreamweaver web page, when I view it in enternet explorer it will only play the complete sound (a horse whinnie)IF I HOLD DOWN ON THE LEFT MOUSE BUTTON. If I don't, it acts like the sound is cut off - please help!
 
Make a MovieClip with a stop on frame 1 and the sound on frame 2.. Have the button tell that movie to play.

on(press){
myMovieClip.play();
}

It'll work like a charm.. The reason yours isnt working is because buttons only do what is in the "Down" state while the button is pressed in, same as rollover..

So this way, it tells the movie clip to play so it doesnt get cut off no matter what..

-Nukoi
 
That makes perfect sense! Thanks for explaining that so well! I'll go give it a try.
 
Hi Nukoi,
Please HELP!!
I just can not get this - It sounds SO-o-o-o simple, and I'm sure it is - just not for me!
I've made a button, with up,over,down,hit - nothing special, just changes colors.
Then I started on the main frame, made a "movie instance" I put the "stop" on frame 1 and then clicked on frame 2 and under actions added "new sound" and typed in the file (horse.wav)
Okay, then I added another layer put my "button instance" and tried to add the other actions - On press... this is where I start getting ALL CONFUSED!!!
PLEASE give me a step, by step and a few more steps!!!
Thanks for your time.
 
Okay, lets take it from frame 2 of your movie clip.

go to File--->Import
Select your sound file.
Now select frame 2 and open the sounds tab.
Select your sound that you just imported from the drop down menu.
Extend your frames until you dont see the blue squiggly wave signatures anymore.

Now go back to the main timeline and select that movie clip.. Open the instance tab and under instance name, name it "mysound"...

Now right click on your button and select "actions"

Click the arrow in the upper right corner to go to "Expert Mode" and type in the following:

on (press){
mysound.play();
}

Let me know if you run into any problems.. I will be up for a few more hours. =) -Nukoi
I know my stuff.. Hire me.
 
Here ya go!

For the .fla...

Regards,
new.gif
 
THANK YOU GUYS!!!!!!!!!!!!! I FINALLY GOT IT TO WORK!!!!!
I really appreciate all the patience and step by step basic steps that you supplied. ;)
 
Now that I've got this down... can I link it to a url after the horse sound? I tried, but of coarse my idea didn't work! But at least this time, thanks to Nukoi, I understand why it didn't - what I did, after the

on(press){
mysound.play();
}

I added the
on(release){
get url - BLA BLA BLA - You get the picture - once the button is clicked it by passed my sound and went straight to the url - so...
is there a way to do it? Would you mind to explain this part? Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top