1 Reply Latest reply on Sep 4, 2006 3:28 PM by

    var lastSelected: can this 'timeout'?

    southbeachbum Level 1
      a bunch of buttons contain code like this:

      on(release) {
      if (lastSelected == grid_housing) {
      _root.grid.grid_housing.gotoAndPlay("fade");
      }
      if (lastSelected == grid_homes) {
      _root.grid.grid_homes.gotoAndPlay("fade");
      }
      if (lastSelected == grid_hotels) {
      _root.grid.grid_hotels.gotoAndPlay("fade");
      }
      lastSelected = this;
      }

      this works on all buttons, but only once. the second time, any code associated with lastSelected doesn't work at all.

      whattayathink?
      sbb