P
ROTOTYPE
I'm Not Only The Prototype, I'm Also A Member.
home
▪
stats
▪
search
▪
linkback
▪
about
▪
FAQ
| user: guest,
login
,
register
Movieclip
:
_left,_right,_top,_bottom properties
author:
turuncu
[+]
,
Submitted: 02.23.05 8a
• Last Edit: 02.23.05 8a
// _left function getLeft() { return this.getBounds(this._parent).xMin; } function setLeft(nr) { this._x=nr-this.getBounds().xMin; } MovieClip.prototype.addProperty("_left", getLeft, setLeft); // _right function getRight() { return this.getBounds(this._parent).xMax; } function setRight(nr) { this._x=nr-this.getBounds().xMax; } MovieClip.prototype.addProperty("_right", getRight, setRight); // _top function getTop() { return this.getBounds(this._parent).yMin; } function setTop(nr) { this._y=nr-this.getBounds().yMin; } MovieClip.prototype.addProperty("_top", getTop, setTop); // _bottom function getBottom() { return this.getBounds(this._parent).yMax; } function setBottom(nr) { this._y=nr-this.getBounds().yMax; } MovieClip.prototype.addProperty("_bottom", getBottom, setBottom);
usage
its simple and for getting and setting mc's top, left, bottom and right usage: this.onMouseDown = function() { mc._left = this._xmouse; mc._top = this._ymouse; };
Add Comment
[+]
›opyleft 2001-2013. Layer51 is: Jaime Prado.
@
buy wow gold
abendkleider online
cocktail dresses uk
woolrich outlet
clarisonic pro
long prom dresses