0 Replies Latest reply on Nov 13, 2008 1:20 PM by AESS1981

    SWFaddress deep linking between multiple mcs

    AESS1981
      I am using SWFaddress deep linking to create a URL history in my website.
      When I load a swf into a new level, the history sequence is broken. Is there a way I can have different levels 'talk' to each other to create a seamless history chain?

      The Actionscript in the first frame of my button on _level20 is:
      this.deepLink = '/services/';
      this.onRelease = _parent.btnRelease;
      this.onRollOver = _parent.btnRollOver;
      this.onRollOut = _parent.btnRollOut;
      stop();


      The Actionscript in the first frame of _level10 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));
      }
      ---------

      Many thanks