View Mode: Normal | Article List
"volumnTo" method in zigoengine
[ 2007-02-10 12:57:33 | Author: liuhuan ]
Thank Andrew for this: http://www.mosessupposes.com/Fuse/forum/comments.php?DiscussionID=133
By driverjase:
Create a class named Sound2.as and add the following code:...
Read More...
By driverjase:
Create a class named Sound2.as and add the following code:
Quote
class Sound2 extends Sound { function Sound2 (target:Object) { super(target); } public function get volume ():Number { return this.getVolume(); } public function set volume (v:Number):Void { trace ("volume:
Read More...
A way for button to hittest using point
[ 2007-02-10 12:52:36 | Author: liuhuan ]
very simple. Here we used the localToGlobal method:
Quote
this.onMouseMove = function() {
point = new Object();
point.x = _xmouse;
point.y = _ymouse;
localToGlobal(point);
if (!btn.hitTest(point.x, point.y, true)) {
delete this.onMouseMove;
}
};
point = new Object();
point.x = _xmouse;
point.y = _ymouse;
localToGlobal(point);
if (!btn.hitTest(point.x, point.y, true)) {
delete this.onMouseMove;
}
};