3 Replies Latest reply on Mar 14, 2007 9:45 PM by kglad

    Adding Sound to a Movie Clip Help!!!

    jterbs
      Hello,

      I have an interactive map and when you drop the state over the correct matching state it supposed to say 'correct'

      Whats happening is just the opposite it's saying correct when the state is dropped on any incorrect state or match.

      Here is the code:

      var mc_state01:MovieClip;
      mc_state01.onPress=function():Void {
      this.startDrag();
      };
      mc_state01.onRelease=function():Void {
      this.stopDrag();
      if(eval(this._droptarget)==mc_state01Target) {
      this._visible=false;
      sound1 = new Sound(this);
      sound1.attachSound("right");
      sound1.start(0,1);
      mc_state01Target.gotoAndPlay(2);


      };
      }