Sushi
%Europe/Berlin %625 %2008, 15:00
Hallo allemaal,
Ik krijg deze warning als ik een functie oproep
**Warning** Scene=Scene 1, layer=actions, frame=2:Line 56: The identifier 'sound' will not resolve to built-in object 'Sound' at runtime.
sound();
Total ActionScript Errors: 1 Reported Errors: 1
Wat gaat hier mis. Ik doe simpel weg gwn een functie oproepen die sound heet.
sound();
//-------------------------------------------------------------------------------------FUNCTION SOUND
function sound() {
if (soundon == true) {
s0.start();
s1.setVolume(100);
s2.setVolume(100);
holder.soundbutton2._visible = false;
holder.soundbutton1._visible = true;
} else {
s0.stop();
s1.setVolume(0);
s2.setVolume(0);
holder.soundbutton1._visible = false;
holder.soundbutton2._visible = true;
}
}
x Sue
edit : al gefixt. Je kan blijkbaar niet sound gebruiken, dus heb er soundselect van gemaakt.
Ik krijg deze warning als ik een functie oproep
**Warning** Scene=Scene 1, layer=actions, frame=2:Line 56: The identifier 'sound' will not resolve to built-in object 'Sound' at runtime.
sound();
Total ActionScript Errors: 1 Reported Errors: 1
Wat gaat hier mis. Ik doe simpel weg gwn een functie oproepen die sound heet.
sound();
//-------------------------------------------------------------------------------------FUNCTION SOUND
function sound() {
if (soundon == true) {
s0.start();
s1.setVolume(100);
s2.setVolume(100);
holder.soundbutton2._visible = false;
holder.soundbutton1._visible = true;
} else {
s0.stop();
s1.setVolume(0);
s2.setVolume(0);
holder.soundbutton1._visible = false;
holder.soundbutton2._visible = true;
}
}
x Sue
edit : al gefixt. Je kan blijkbaar niet sound gebruiken, dus heb er soundselect van gemaakt.