Hello there,
I'va a small problem with my audio alert.
I added this code:
fpArray[x] = new FunctionParameter("AlertOn", FunctionParameter.STRING);
with(fpArray[x++]){
setName("Alert");
addOption("OFF");
addOption("Warning");
addOption("ding");
setDefault("Warning");
Then I added this code:
if(AlertOn="OFF");
Alert.playSound(AlertOn+".wav");
The code seems correct but I get an other sound (I think a default sound from windows system) and not what I listed in the FunctionParameter.
Any suggest?
I'va a small problem with my audio alert.
I added this code:
fpArray[x] = new FunctionParameter("AlertOn", FunctionParameter.STRING);
with(fpArray[x++]){
setName("Alert");
addOption("OFF");
addOption("Warning");
addOption("ding");
setDefault("Warning");
Then I added this code:
if(AlertOn="OFF");
Alert.playSound(AlertOn+".wav");
The code seems correct but I get an other sound (I think a default sound from windows system) and not what I listed in the FunctionParameter.
Any suggest?
Comment