Added some ActionScript commands

This commit is contained in:
Skyler Lehmkuhl 2012-01-12 16:32:54 -05:00
parent fddf3e1776
commit b4a92e76b5
1 changed files with 18 additions and 12 deletions

View File

@ -118,6 +118,7 @@ function MovieClip() {
this._xscale = 1; this._xscale = 1;
this._yscale = 1; this._yscale = 1;
this._rotation = 0; this._rotation = 0;
this._visible = true;
Timer.add(this) Timer.add(this)
@ -127,6 +128,7 @@ function MovieClip() {
this._draw = function (frame,frame2,r) { this._draw = function (frame,frame2,r) {
_processingobj = this _processingobj = this
if (this._visible) {
if (!frame2) { if (!frame2) {
this._x = frame._x this._x = frame._x
this._y = frame._y this._y = frame._y
@ -140,6 +142,7 @@ function MovieClip() {
this._yscale = ave(frame2._yscale, frame._yscale, r) this._yscale = ave(frame2._yscale, frame._yscale, r)
this._rotation = ave(frame2._rotation ,frame._rotation, r) this._rotation = ave(frame2._rotation ,frame._rotation, r)
} }
}
//log(this._x) //log(this._x)
cr.save() cr.save()
cr.translate(this._x,this._y) cr.translate(this._x,this._y)
@ -225,6 +228,9 @@ function MovieClip() {
this.gotoAndStop = function (frame) { this.gotoAndStop = function (frame) {
this._playing = false; this._playing = false;
this._currentframe = frame; this._currentframe = frame;
}
this.prevFrame = function () {
this.gotoAndStop(this._previousframe)
} }
// Implemented? // Implemented?
this.onData = function () { //No this.onData = function () { //No