5 Replies Latest reply on Feb 4, 2007 12:59 PM by Newsgroup_User

    Can some one have a look at this actionscript?

    satrop Level 1
      Ok this actionscript was working but now its not? Not sure what I did? Hears the code>

      stop();
      xDif = 15;
      yDif = 15;
      setProperty("_root.mcPopup", _visible, "0");
      function showPopup(txt) {
      _root.mcPopup.theText = txt;
      setProperty("_root.mcPopup", _x, _xmouse+_root.xDif);
      setProperty("_root.mcPopup", _y, _ymouse+_root.yDif);
      startDrag("_root.mcPopup");
      setProperty("_root.mcPopup", _visible, "1");
      }
      function hidePopup() {
      stopDrag();
      setProperty("_root.mcPopup", _visible, "0");
      }
      xDif = 15;
      yDif = 15;
      setProperty("_root.mcPopup1", _visible, "0");
      function showPopup1(txt) {
      _root.mcPopup1.theText = txt;
      setProperty("_root.mcPopup1", _x, _xmouse+_root.xDif);
      setProperty("_root.mcPopup1", _y, _ymouse+_root.yDif);
      startDrag("_root.mcPopup1");
      setProperty("_root.mcPopup1", _visible, "1");
      }
      function hidePopup1() {
      stopDrag();
      setProperty("_root.mcPopup1", _visible, "0");
      }
      import mx.transitions.Tween;
      import mx.transitions.easing;
      tl = this;
      buttonA = [bendable_bt, nonbendable_bt, treadnatural_bt,treadblack_bt,basenatural_bt, baseblack_bt, standard_heel_bt, two_heel_bt, three_heel_bt, style49_bt, style97_bt, style89_bt, style87_bt, style86_bt, style82_bt, style79_bt, style74_bt, style69_bt, style68_bt, style67_bt, style66_bt, style55_bt, style54_bt, style52_bt, style51_bt, style50_bt, style46_bt, style45_bt, style44_bt, style40_bt, style35_bt, style34_bt, style33_bt, style32_bt, style31_bt, style29_bt, style26_bt, style24_bt, style23_bt, style22_bt, style21_bt, style20_bt, style14_bt, style13_bt, style11_bt, style10_bt, style09_bt, style07_bt, style05_bt, style04_bt, black22_bt, darkgray22_bt, lightgray22_bt, purple11_suede_bt, green11_suede_bt, black11_suede_bt, pink11_suede_bt, navy11_suede_bt, brown1_suede_bt, cranberry_suede_bt, turquoise10_pat_bt, black10_pat_bt, rolay10_pat_bt, navy10_pat_bt, lime10_pat_bt, red11_pat_bt, pink10_pat_bt, lightblue1_nu_bt, darkroyal_nu_bt, denim_nu_bt, olive1_nu_bt, mushroom_nu_bt, mocha_nu_bt, mahogany_nu_bt, honey_nu_bt, rust_nu_bt, mustard_nu_bt, purple1_nu_bt, berry_nu_bt, navy1_nu_bt, black1_nu_bt, brown_nu_bt, camel_bt, red1_nu_bt, fudge_bt, pink_bt, canary_bt, fuchsia_bt, britishtan_bt, black_bt, fawn_bt, wine_bt, mint_bt, cordovan_bt, robinblue_bt, chocolate_bt, red_bt, lightyellow_bt, spruce_bt, purple_bt, ocean_bt, white_bt, frog_bt, lightblue_bt, taupe_bt, darkgray_bt, navy_bt, apple_bt];
      function turnOn(mc) {
      new Tween(mc, "_alpha", Regular.easeIn, 0, 100, 1, true);
      }
      function turnOff(mc) {
      new Tween(mc, "_alpha", Regular.easeIn, 100, 0, 1, true);
      }
      for (var i = 0; i<buttonA.length; i++) {
      buttonA .onRollOver = function() {
      turnOn(tl[this._name.substring(0, this._name.indexOf("_"))+"_shoe_mc"]);
      };
      buttonA
      .onRollOut = function() {
      turnOff(tl[this._name.substring(0, this._name.indexOf("_"))+"_shoe_mc"]);
      };
      }

      And i get this output error>

      **Error** Scene=Scene 1, layer=Action, frame=1:Line 31: The class or interface 'mx.transitions.easing' could not be loaded.
      import mx.transitions.easing;

      Total ActionScript Errors: 1 Reported Errors: 1