website promotion banner
eturnkeys
Your Ad Here
Flash & Swish  Home Flash & Swish Flash Tutorials Object Movement Relative to Mouse
rss

Object Movement Relative to Mouse

Author: Phil More by this author


Sample 1

Click here to open FLASH: Mouse sample 1 file

Sample 2

Click here to open FLASH: Mouse sample 2 file

Sample 3

Click here to open FLASH: Mouse sample 3 file

Sample 4

Click here to open FLASH: Mouse sample 4 file

Sample 5

Click here to open FLASH: Mouse sample 5 file

if (_root._xmouse>_root.arrow._x) {
setProperty ("_root.arrow", _height, "50");
_root.arrow._x = (_root.arrow._x+5);
} else {
_root.arrow._x = (_root.arrow._x-5);
setProperty ("_root.arrow", _height, "20");
}
if (_root._ymouse>=_root.arrow._y) {
_root.arrow._y = (_root.arrow._y+5);
setProperty ("_root.arrow", _alpha, "100");
setProperty ("_root.arrow", _width, "35");
} else {
_root.arrow._y = (_root.arrow._y-5);
setProperty ("_root.arrow", _alpha, "50");
setProperty ("_root.arrow", _width, "75");
}
if (_root._xmouse>=0) {
setProperty ("_root.arrow", _rotation, "45");
}
if (_root._xmouse>=100) {
setProperty ("_root.arrow", _rotation, "135");
}
if (_root._xmouse>=200) {
setProperty ("_root.arrow", _rotation, "-135");
}
if (_root._xmouse>=300) {
setProperty ("_root.arrow", _rotation, "-45");
}

Sample 6

Click here to open FLASH: Mouse sample 6 file

if (_root._xmouse>_root.arrow._x) {
_root.arrow._x = (_root.arrow._x+10);
_root.arrow._rotation = (_root.arrow._x);
} else {
_root.arrow._x = (_root.arrow._x-10);
}

Sample 7

Click here to open FLASH: Mouse sample 7 file

_root.arrow._rotation = (_root.arrow._x +90);
if (_root._xmouse>_root.arrow._x) {
_root.arrow._x = (_root.arrow._x+10);
} else {
_root.arrow._x = (_root.arrow._x-10);
}

Sample 8

Click here to open FLASH: Mouse sample 8 file

_root.arrow._rotation = (_root.arrow._x*2);
_root.arrow._alpha = (_root._ymouse/2);
_root.arrow._xscale = (_root._ymouse/2);
_root.arrow._yscale = (_root._xmouse/2);
if (_root._xmouse>_root.arrow._x) {
_root.arrow._x = (_root.arrow._x+3);
} else {
_root.arrow._x = (_root.arrow._x-3);
}
if (_root._ymouse>_root.arrow._y) {
_root.arrow._y = (_root.arrow._y+3);
} else {
_root.arrow._y = (_root.arrow._y-3);
}

Sample 9

Click here to open Flash: Mouse click sample 9 file



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Object Movement Relative to Mouse"