0 Replies Latest reply on Jun 29, 2007 7:17 PM by dplogan

    Melding two Flasn MX Templates

    dplogan
      Hello;
      I'm trying to take the animated text boxes from one template and put them into a website I've already designed. The script for the animated boxes has actions in it that isn't needed for the new environment. But I don't see an on(press) command. The buttons that bring the text boxes on are animated and so there's an onClipEvent(load) command. In fact, the script is as follows:

      onClipEvent(load) {
      num=2;
      }

      on(rollOver) {
      if(_root.link<>num) {
      s=new Sound(_root);
      s.attachSound("b1");
      s.start(0,1);

      this.gotoAndPlay("s1");
      }
      }

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

      on(release) {
      if(_root.link<>num and _root.animation=="true") {
      s=new Sound(_root);
      s.attachSound("b2");
      s.start(0,1);

      _root.animation="false";
      _parent["item" + _root.link].gotoAndPlay("s2");
      if(_root.link==1) { _parent._parent.pages.gotoAndPlay("l2");}
      else {_parent._parent.pages.gotoAndPlay("l3_2");}
      _root.link=num;
      }
      }

      For the buttons I'm adding this to, I need to change "s!" to "2" and "11". The parent .pages as referred to in this script have been added to the library.

      Previously, the action script on the button looked like this:

      on (rollOver) {
      gotoAndPlay(2);
      }
      on (releaseOutside, rollOut) {
      gotoAndPlay(11);


      Any ideas? I would really appreciate some help.

      Thanks