4 Replies Latest reply on May 12, 2010 9:13 AM by Ned Murphy

    Action Script HELP

    yourpagetoday
      I have a web site template, have 4 links that go to other scenes (button type links with rollover effects) I am trying to make those buttons link to html pages (urls) instead....I found the action script that does the rollover effect and links to another scene within...but does anyone know how to make it so that it does the rollover effect but links to url instead of scene?? here is the AS.... I think I have to put it on roll out or on release but not sure and not sure what to leave and what to take out

       

      Thanks in advance!!

       


      onClipEvent(load) {
      num=2;
      }

       

      on(rollOver) {
      if(_root.link<>num) {
      this.gotoAndPlay("s1");
      }
      }

       

      on(rollOut, releaseOutside) {
      if(_root.link<>num) {
      this.gotoAndPlay("s2");
      }
      }

       


      on(release) {
      if(_root.link<>num and _root.animation==1) {
      this.gotoAndPlay("s3");
      _root.animation=0;
      _root.link_prev=_root.link;
      _parent["item" + _root.link].gotoAndPlay("s4");
      _root.link=num;
      _root.pages.page.play();

       

      }
      }