5 Replies Latest reply on Nov 20, 2007 1:49 PM by kglad

    spacebar toggles play/pause

    aya::karpinska
      hello, all,

      i know this should be simple, but i can't figure out why my script doesn't work. it is on the main timeline, on a keyframe in an "actions" layer. i want to have the spacebar be a play/pause toggle.

      ---
      stop();

      on (keyPress "<Space>") {
      if (_root.isPlaying == true) {
      stop();
      } else {
      play();
      }


      ---

      help? thank you.
      aya.