This probably is a no brainer…
I am hiding the cursor and draging a movie clip after clicking on a button.
How would I make this movie clip move along the x axis only?
function loadCoin() {
Mouse.hide();
startDrag("loadedCoin", true);
}
This probably is a no brainer…
I am hiding the cursor and draging a movie clip after clicking on a button.
How would I make this movie clip move along the x axis only?
function loadCoin() {
Mouse.hide();
startDrag("loadedCoin", true);
}
function loadCoin() {
Mouse.hide();
onMouseMove = function(){
loadedcoin._x = _xmouse;
updateAfterEvent();
}
}
This did the trick! :hugegrin:
One more question. Say I want to click on a button. On release I’d like the object attached to my mouse to get dropped off right where I click. So it wouldn’t follow the mouse after the button is clicked.
Any suggestion on how to accomplish this?
Thanks
function loadCoin() {
Mouse.hide();
onMouseMove = function(){
loadedcoin._x = _xmouse;
updateAfterEvent();
}
}
function unloadCoin() {
Mouse.show();
delete onMouseMove;
}
button.onPress = unloadCoin;
:: Copyright KIRUPA 2024 //--