1 Reply Latest reply on Nov 15, 2007 11:57 AM by jlegris-1

    Alert box wont work when swf is loaded into parent file

    jlegris-1
      I'm having a problem. The code pasted below works fine. But when I load the flash file into a 'parent' flash file (the interface to the website), the alert box and sound file no longer work.

      here's the code - it's for when a user fills out a form and hit's a 'next' button.

      on (release) {
      if(selectedTrim=="")
      {
      mx.controls.Alert.show("You must select a trim level before continueing.", "ATTENTION");
      }
      else
      {
      var mySound:Sound= new Sound();
      mySound.attachSound("btn-swish");
      mySound.start(0,0);
      gotoAndPlay("TrimToColor");
      }
      }

      any ideas?