0 Replies Latest reply on Nov 15, 2008 8:49 AM by AESS1981

    SWFaddress deep linking between multiple swfs

    AESS1981 Level 1
      Hi, I am using SWFaddress to create deep linking within my website. It works great within the main swf, however when I load a new swf, the history chain becomes broken. I think it is to do with the Actionscript on the 1st frame on the loaded swf.

      The Actionscript in the 1st frames of both swf files is:
      #include "SWFAddress.as"

      function btnRelease() {
      SWFAddress.setValue(this.deepLink);
      }
      function btnRollOver() {
      SWFAddress.setStatus(this.deepLink);
      }
      function btnRollOut() {
      SWFAddress.resetStatus();
      }

      SWFAddress.onChange = function() {
      var value = SWFAddress.getValue();
      if (_currentframe == 2 && value == '/') {
      play();
      } else {
      var frame = _currentframe;
      gotoAndStop('$' + value);
      if (frame == _currentframe) {
      gotoAndStop('$/error/');
      return;
      }
      }
      SWFAddress.setTitle(formatTitle(value));
      }

      Should I amend the Actionscript in the loaded swf? The Actionscript in the 1st frame of a button is:
      this.deepLink = '/welcome/';
      this.onRelease = _root.btnRelease;
      this.onRollOver = _root.btnRollOver;
      this.onRollOut = _root.btnRollOut;

      stop();

      Hope someone can shed some light on this.
      Many thanks