1 Reply Latest reply on May 22, 2006 3:11 PM by Applied CD

    Need simple mute button using Checkbox

    Applied CD Level 1
      Hi, this is probably very simple (using MX04).

      I've got an instance of a Checkbox called soundFXButton. Simple sound effects are triggered in various frames, I want to check the state of soundFXButton before playing each sound as follows:

      if {not{soundFXButton.selected}} {
      soundFX = new Sound();
      soundFX.attachSound("ANGELS_F.WAV");
      soundFX.start();
      };

      When I publish I get the following:

      **Error** Scene=Scene 1, layer=ActionScript, frame=1:Line 1: '(' expected

      Anyone see what I'm missing? I new to AS syntax. Do I really need to create a listerner handler for something this simple?