Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Create Simple Mouse Follower
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Follow the simple steps (Simplest tutorial)

1. Create desired shape or animation which will follow the mouse and group it as sprite (as shoen in Fig 1)

2. Click your Sprite, goto its script tab and enter script shown in Fig 2, or copy following and paste there.


onenterframe(){
_X=_root._xmouse;
_Y=_root._ymouse;
}

_X is current sprite x coordinates
_Y is current sprite y coordinates

_root._xmouse is global mouse X position on the Movie
_root._ymouse is global mouse Y position on the Movie


download resource file here
http://www.swish-db.com/forum/files/file.php?f=458&c=7

I hope it helps.
regards


All rights reserved - swish-db.com