Added some ActionScript commands
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user