Tutorial | Actionscript 3 Mouse Tracking (Video Tutorial)
4 May, 2008 in AS3, Actionscript, Flash, Tutorials
Tags: Actionscript 3, Adobe, AS3, cs3, Flash, mouse, programming, tracking, Video, video tutorial
A video tutorial showing how to create two movieclips that follow the X and Y coordinates of the mouse to give a target like effect, this is ideal for shooting type games.
Possibly related posts: (automatically generated)
-
Menu
- 1 - Tutorials
- 3D Tutorials
- Adobe Acrobat 3D
- Adobe AIR Tutorials
- Adobe Dreamweaver Tutorials
- Adobe Flash Tutorials
- Adobe Flex Tutorials
- Adobe Illustrator Tutorials
- Adobe Media Player Tutorials
- Adobe Photoshop Tutorials
- Fireworks Tutorials
- Flash Lite Tutorials
- Papervision 3D Tutorials
- PHP Tutorials
- Sandy 3D Tutorials
- SilverLight Tutorials
- 2 - Free Templates
- 3 - Flash 3D List
- 4 - Contribute $$$
- 5 - Links
- 6 - Advertise
- 7 - About
- 1 - Tutorials
-
Fave FL Blog
-
Top Posts
- Papervision 3D Tutorials (with Videos)
- Adobe Flash Tutorials
- Some cool AS3 effects to your Flash movies
- AS3 Mouse Events and Mouse Related User Actions
- AS3 Tutorial - Sending form data AS3 + PHP
- Creating a Simple MP3 Player using ActionScript 3.0 and Flex 2
- Flash CS3 Tutorial - Particle Effect
- Papervision 3D Tutorials
- 2 - Free Templates
- Flash CS3 Tutorial - Create Water Wave Effect Animation Using Masking Tween
- AS3 Flash Video Player Example (with code)
- Flash CS3 Tutorial - Creating an Advance Image Gallery
-
Last Comment by
-
Badges Farm
Tag Cloud
3d Actionscript Actionscript 3 Adobe adobe flash AIR article AS3 code Components cs3 demo design download Downloads effect effects example Files Flash Flex Free gallery Graphics how to Illustrator News papervision 3d Papervision 3D Photoshop programming pv3d Resources RIA Source techniques Tips Tutorial Tutorials Video web Web Design webdesign web development xml

















12 June, 2008 at 9:11 am
For those who are too lazy to type the code they saw in the video, here it is:
var lineX:linex = new linex();
var lineY:liney = new liney();
addChild(lineX);
addChild(lineY);
stage.addEventListener(MouseEvent.MOUSE_MOVE,track)
function track(e:event):void
{
lineX.y = mouseY;
lineY.X = mouseX;
}
Want to play free flash games or put them on your MySpace or Facebook profile?
Visit: http://www.fun4myspace.com
Free Flash Games For Your Profile
6 September, 2008 at 10:07 am
there is an error !
it says with this function
function track(e:event):void
!!
15 September, 2008 at 7:40 pm
function track(e:event):void
The e in event should be E
lineY.X = mouseX;
The .X should be .x