0 Replies Latest reply on Oct 25, 2006 11:36 AM by dannyt3

    scripting timeline

    dannyt3
      I am creating a 6 page site. I want to script a url link to an image on page 2, however... when i attempt to add any script to page 2 the result is that the pages no longer play relative to the menu item selected. (ie. No matter what menu items are selected the pages just play in timeline order 1,2,3,4,5... They no longer skip around. Please Help!

      Here is the code from the root:

      onFrame (1,afterPlacedObjectEvents) {
      url="xxxx";
      this.loadVariablesNum(url + "_main.html",0);
      _root.link=1;


      }
      onFrame (4) {
      playSound("F1.wav");
      }
      onFrame (38) {
      playSound("F0.wav");
      }
      onFrame (39) {
      playSound("L.wav",false,100,999);
      }
      onFrame (80) {
      setLabel("s1");
      }
      onFrame (81) {
      stop();
      }
      onFrame (82) {
      playSound("F0.wav");
      }
      onFrame (84) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (85) {
      setLabel("s2");
      }
      onFrame (121) {
      stop();
      }
      onFrame (122) {
      _root.Page_1.gotoAndPlay(20);
      }
      onFrame (123) {
      playSound("F0.wav");
      }
      onFrame (138) {
      _root.Parts1.gotoAndPlay(20);
      }
      onFrame (147) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (148) {
      setLabel("s3");
      }
      onFrame (187) {
      stop();
      }
      onFrame (188) {
      _root.Page_2.gotoAndPlay(20);
      }
      onFrame (189) {
      playSound("F0.wav");
      }
      onFrame (204) {
      _root.Parts2.gotoAndPlay(20);
      }
      onFrame (216) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (217) {
      setLabel("s4");
      }
      onFrame (249) {
      stop();
      }
      onFrame (250) {
      _root.Page_3.gotoAndPlay(20);
      }
      onFrame (251) {
      playSound("F0.wav");
      }
      onFrame (269) {
      _root.Parts2.gotoAndPlay(20);
      }
      onFrame (285) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (286) {
      setLabel("s5");
      }
      onFrame (323) {
      stop();
      }
      onFrame (324) {
      _root.Page_4.gotoAndPlay(20);
      }
      onFrame (325) {
      playSound("F0.wav");
      }
      onFrame (343) {
      _root.Parts2.gotoAndPlay(20);
      }
      onFrame (354) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (355) {
      setLabel("s6");
      }
      onFrame (392) {
      stop();
      }
      onFrame (393) {
      _root.Page_5.gotoAndPlay(22);
      }
      onFrame (394) {
      playSound("F0.wav");
      }
      onFrame (414) {
      _root.Parts2.gotoAndPlay(20);
      }
      onFrame (428) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }
      onFrame (429) {
      setLabel("s7");
      }
      onFrame (466) {
      stop();
      }
      onFrame (467) {
      _root.Page_6.gotoAndPlay(17);
      }
      onFrame (468) {
      playSound("F0.wav");
      }
      onFrame (488) {
      _root.Parts3.gotoAndPlay(20);
      }
      onFrame (504) {
      label = "s" + _root.link;
      gotoAndPlay(label);
      }

      Am I forgetting something?....