• Home
  • Free Tutorials
  • Free Video Tutorials

Adobe Photoshop
Autodesk 3ds Max
CSS
Flash
Help Center Live
iPhone
Joomla
Make Money Online!
Mambo
mIRC
Outlook Express
SEO / SEM
Simple Machine Forum
Target Explorer

Mouse Cursor Particle Effect

Category : Flash Views : 26825
Version : 8 Rating : 
3.7/5 (44 votes)
  • Currently 3.66/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text Source File: mouse-cursor-particle-effect.zip
Result: See the result


Previous | 1 | 2 | Next

On the last frame of the Movie Clip's layers drag the Movie Clips to the end of the path and set their alpha to 0:
Free Flash Tutorials, Actionscript, Mouse Cursor, Navigation, Particle Effect

Now create a Motion Tween in all Movie Clip's layers:
Free Flash Tutorials, Actionscript, Mouse Cursor, Navigation, Particle Effect

On the last frame of this Movie Clip paste:
//remove Movie Clip this.removeMovieClip();

Set the identifier for this Movie Clip to "MCTween" and go back to the main timeline.

Open the actions for the first frame and paste:
//to attach new Movie Clips var count = 0; //when the mouse is moved _root.onMouseMove = function() { //attach our Movie Clip _root.attachMovie("MCTween", "MCTween" + count, count); //set the coordinates to be equal to the mouse _root["MCTween" + count]._x = _xmouse; _root["MCTween" + count]._y = _ymouse; //random rotation between 0 and 360 _root["MCTween" + count]._rotation = Math.round(Math.random() * 360); //increase "count" by 1 count++ }

We rotate the Movie Clip to make them look different because they are exactly the same Movie Clip, but the effect is great.

Code Explanation

_root.onMouseMove = function() { _root.attachMovie("MCTween", "MCTween" + count, count); _root["MCTween" + count]._x = _xmouse; _root["MCTween" + count]._y = _ymouse;
Create a new Movie Clip and set its position to be equal to the mouse.

_root["MCTween" + count]._rotation = Math.round(Math.random() * 360);
Rotation the Movie Clip to a random angle will make every Movie Clip seem unique even if they are the exactly same Movie Clip.

count++ }
Increase this variable to create new Movie Clips with different names and depths.


More cool tech articles from other blogs.

Place your ad here
Loading...


Previous | 1 | 2 | Next
How to Video Tutorials on software by Helpvids.com

Sponsors





Joomla Web Designer
Studio | Advertisement | About Webzo | Contact Webzo | Terms of Use | Free Video Tutorials by Helpivds

Copyright © 2007 NR Concepts Ltd. All rights reserved.