1 Reply Latest reply on May 17, 2008 4:55 AM by Ned Murphy

    last thing on the list, working play and pause buttons

    n1cdavis416
      Howdy,

      I have a simple little slide show and for a number of reasons I need play and pause buttons on each frame to offer user control. I currently have some code that I got from this forum installed in a seperate layer in individual key frames for each frame:
      {
      btn,pause.onPress=function(){
      myPlayButton.enabled=true;
      myPauseButton.enabled=false;
      stop();
      };
      btn,play.onPress=function(){
      myPlayButton.enabled=false;
      myPauseButton.enabled=true;
      play();
      };
      I got an error that reads: Access of undefined property btn. btn, pause.onPress=function(){.

      I'm not quite sure what this means. That my button is undefined? How exactly do I define it? Do I need this code in each frame where I want my button to be active? The buttons are actually named btn, pause and btn, play, respectively in my library. Any help would be appreciated. This is the last task before I can launch my site. Many thanks.