From fddf3e1776c7ec8aa692008f7b5d3cc4b21ed985 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 12 Jan 2012 16:20:09 -0500 Subject: [PATCH] Added gotoAndStop() and gotoAndPlay() to HTML5 --- base.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base.js b/base.js index 2ffe24a..9a449c9 100644 --- a/base.js +++ b/base.js @@ -217,6 +217,14 @@ function MovieClip() { this.stop = function () { //Timer.remove(this) this._playing = false + } + this.gotoAndPlay = function (frame) { + this._playing = true; + this._currentframe = frame; + } + this.gotoAndStop = function (frame) { + this._playing = false; + this._currentframe = frame; } // Implemented? this.onData = function () { //No