Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Flash Tutorials Object Movement Relative to Mouse
Your Ad Here

Object Movement Relative to Mouse


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


Author's URL: Phil
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Internet & computing Flash is a vector-based moving graphics format created by Macromedia for the publication of animations on the World Wide Web. More Flash & Swish: Most Popular Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

Add comments to "Object Movement Relative to Mouse"

Only registered users can write comment

No comments yet...