brainpudding
Technical User
shouldnt this work. the btnlogo is on themain timeline
//MUSIC
playing=false;
btnlogo.onPress=function(){
if(playing==false){
_root.mysound = new Sound();
_root.mysound.loadSound("music/cpjingle.mp3", true);
_root.mysound.start();
_root.mysound.setVolume(50);
playing=true;
}else{
_root.mysound.stop();
playing=false;
}
}
//MUSIC
playing=false;
btnlogo.onPress=function(){
if(playing==false){
_root.mysound = new Sound();
_root.mysound.loadSound("music/cpjingle.mp3", true);
_root.mysound.start();
_root.mysound.setVolume(50);
playing=true;
}else{
_root.mysound.stop();
playing=false;
}
}