Kod: Zaznacz cały
on(rollOver) {
var qwe;
var someListener:Object = new Object();
someListener.onMouseMove = function () {
qwe=_xmouse;
_root.small._x = _xmouse; _root.small._y = _ymouse;
};
Mouse.addListener(someListener);
}
Dzieki z gory.
Kod: Zaznacz cały
on(rollOver) {
var qwe;
var someListener:Object = new Object();
someListener.onMouseMove = function () {
qwe=_xmouse;
_root.small._x = _xmouse; _root.small._y = _ymouse;
};
Mouse.addListener(someListener);
}
Kod: Zaznacz cały
my_btn.onRollOver = function() {
small.onMouseMove = foo;
};
my_btn.onRollOut = function() {
delete small.onMouseMove;
};
function foo() {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
}Kod: Zaznacz cały
var someListener:Object = new Object();
someListener.onMouseMove = function() {
small._x = _xmouse;
small._y = _ymouse;
};
my_btn.onRollOver = function() {
Mouse.addListener(someListener);
};
my_btn.onRollOut = function() {
Mouse.removeListener(someListener);
};