4 Replies Latest reply on Mar 18, 2007 4:20 PM by ahref

    Play SOUND and the go to URL

    rowby Level 1
      Hi All,

      I want the visitor to click on a button. First a sound is heard and then they are taken to a url.

      I'm using this script:

      on (release) {
      var your_sound:Sound = new Sound();
      your_sound.onSoundComplete = function() {
      var intervalID;
      intervalID = setInterval( function(){ getURL(" http://www.Domaincom/store.html","_self"); clearInterval(intervalID) }, 1000);

      And I"m getting this error code:

      **Error** Symbol=joni, layer=JONI'S STORE, frame=1:Line 1: Mouse events are permitted only for button instances
      on (release) {

      Total ActionScript Errors: 1 Reported Errors: 1

      BTW, Is this the best script to use to do this?