pause play rewind

Out of context: Reply #3

  • Started
  • Last post
  • 6 Responses
  • UndoUndo0

    if its for video:
    just use the playhead controls. dead easy.
    to pause use this.stop()
    to play use this.play()

    to rewind totally

    this.gotoAndPlay(1)
    [where 1 is the first frame of your movie?]

    to rewind with scrubbing

    scrubbingFunc = function(){
    this.onEnterFrame = function(){
    this.prevFrame();
    }
    }
    this.onPress = function(){
    scrubbingFunc()
    }
    this.onRelease = function(){
    delete this.onEnterFrame()
    }

    where this.onEnterFrame is the MC containing the function

    hope that helps

View thread