-
Sound on button!!
Hello people I don't why my code does not work on I click on it that have no sound I checked my linkage name is all correct and the file is in library too here the code can someone plss correct the code for me thanz alot~~btw is a button I wanted it to click on it and the sound would play..
on(press)
{
mySound = new Sound();
MySound.attachSound("beat1");
}
-
You must call Sound.start to start playing the sound.
on(press)
{
mySound = new Sound();
MySound.attachSound("beat1");
MySound.start();
}
-
But it still never work I copy and paste the code u give but when I play the movie I press on it still does not have any sound
-
Make sure tat ur sound in library is having the id as beat1...just trying to confirm
-
yup it works thank for yr help!! :) :p