• Home
  • Free Tutorials
  • Free Video Tutorials
Your Ad Here
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 Recorder

Category : Flash Views : 15117
Version : 8 Rating : 
3.3/5 (43 votes)
  • Currently 3.26/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text Source File: mouse-cursor-recorder.zip
Result: See the result


Previous | 1 | 2 | 3 | 4 | Next

//recording button recBtn.onRelease = function() { //show the original mouse Mouse.show(); //hide the copy _root.mouseMC._visible = false; //recording is true _root.recording = true; //playing is false _root.playing = false; //index equal 0 to start recording from the beginning _root.index = 0; //this will make the arrays empty, erasing any position that was there before _root.mPosX = new Array(); _root.mPosY = new Array(); } //play button playBtn.onRelease = function() { //hide mouse Mouse.hide(); //show copy _root.mouseMC._visible = true; //not recording _root.recording = false; //now we are playing _root.playing = true; //index equal 0 to start playing from the beginning _root.index = 0; } //stop button stopBtn.onRelease = function() { //show mouse Mouse.show(); //hide copy _root.mouseMC._visible = false; //not recording _root.recording = false; //not playing _root.playing = false; _root.index = 0; }

Test it now. If you are using a low frame rate the movement wont look good, so increasing it is a good idea.
Free Flash Tutorials, Actionscript, Mouse Cursor Recorder

Code Explanation

mouseMC._visible = false;
Set mouse copy visibility to false.

var recording = false; var playing = false;
These two variables are used to know if we are recording or playing.

var index = 0;
Used for the arrayç—´ index in recording and playing.


del.icio.us digg it Reddit Stumble Upon Technorati

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

Video tutorial: Forex trading



Sponsors



Advertisement







Your Ad Here

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

Copyright © 2007 NR Concepts Ltd. All rights reserved.